Skip to content

Managing depends lists? #636

Closed Answered by polarathene
polarathene asked this question in Q&A
Discussion options

You must be logged in to vote
  • Empty items (works): It seems I can have empty list items, but placing ENV to provide values there may need a generic name if it could represent various packages..
  • Anchors/Aliases (doesn't work): nfpm.Config seems to get validated, any foreign keys defined (even if using the convention of x- prefix like Docker offers for extensions) throws an error.
  • yq could be used to modify YAML via shell scripts in CI.
  • envsubst seems to be the advised alternative to replace file content ENV vars before nfpm processes the config. This was the simplest approach for bulk replacing the depends for me 👍

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by polarathene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant