-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[f-nested-deps] Remove requirement to have root pack name in overrides #426
Conversation
f7a8846
to
b804429
Compare
b804429
to
ef3a0ca
Compare
ef3a0ca
to
0affa93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
internal/pkg/varfile/varfile.go
Outdated
@@ -13,13 +13,15 @@ import ( | |||
"github.com/hashicorp/nomad-pack/sdk/pack/variables" | |||
) | |||
|
|||
func DecodeVariableOverrides(files []*pack.File) DecodeResult { | |||
// TODO: this is only used in a test - remove? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved into the test package
var path pack.ID | ||
var name variables.ID | ||
|
||
// NOTE: This implementation assumes a single element variable value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's fine for now but maybe make an issue so that we could revisit later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created issue #435 to capture this
Continues on the work in #403. Removes the requirement to specify the name of the root pack in the override variable's path.