Skip to content
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

fix(internal): Attribute CLI flags after reading config #856

Merged

Conversation

craciunoiuc
Copy link
Member

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

Because we read the config file at a path, the previously read CLI flags were overwritten. To fix we attribute the flags again over the newly-read config.

@craciunoiuc craciunoiuc added kind/fix This PR fixes an issue or bug area/internal Issue or PR is related to internal packages labels Oct 3, 2023
@craciunoiuc craciunoiuc force-pushed the craciunoiuc/fix-cli-flag-attr branch 2 times, most recently from 12c2916 to 9eec79c Compare October 3, 2023 15:17
cmdfactory/builder.go Outdated Show resolved Hide resolved
internal/cli/options.go Outdated Show resolved Hide resolved
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Copy link
Member

@nderjung nderjung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thanks!

Reviewed-by: Alexander Jung alex@unikraft.io
Approved-by: Alexander Jung alex@unikraft.io

@nderjung nderjung merged commit 2828af2 into unikraft:staging Oct 6, 2023
4 checks passed
@craciunoiuc craciunoiuc deleted the craciunoiuc/fix-cli-flag-attr branch October 17, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/internal Issue or PR is related to internal packages kind/fix This PR fixes an issue or bug
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants