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

Some minor tweaks to the 'toolbox create --authfile ...' code #1240

Merged

Conversation

debarshiray
Copy link
Member

No description provided.

The rest of the manual refers to the file passed to the --authfile
option as FILE, not AUTHFILE.

Fallout from ecd1ced

containers#1240
@debarshiray debarshiray force-pushed the wip/rishi/authfile-style-fixes branch from 35c5139 to 48c07b8 Compare February 16, 2023 13:49
@softwarefactory-project-zuul
Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/e0aaa460a5f4453c8c30277c5f7faa5f

✔️ unit-test SUCCESS in 9m 01s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 4m 00s
✔️ system-test-fedora-rawhide SUCCESS in 15m 30s
✔️ system-test-fedora-37 SUCCESS in 12m 46s
✔️ system-test-fedora-36 SUCCESS in 13m 08s

It's better not to use the global flag variables beyond the top-level
RunE functions, because sometimes the lower-level functions are re-used
from other files within the 'cmd' package.  In this case,
createContainer(), and hence pullImage(), is also used in src/cmd/run.go
to implement the 'run' command.  However, the 'run' command doesn't have
a --authflags option.

Since the default value of the flag is the zero value of the type, which
is a NOP in the code, it's likely that the code was still correct, but
it will be better to maintain some discipline here to highlight the
inputs needed by the lower-level functions.  Otherwise, things can get
tangled up.

Fallout from ecd1ced

containers#1240
@softwarefactory-project-zuul
Copy link

Build succeeded.
https://softwarefactory-project.io/zuul/t/local/buildset/bd71c12a7d00436aabae0dabe61ae7bb

✔️ unit-test SUCCESS in 9m 13s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 09s
✔️ system-test-fedora-rawhide SUCCESS in 15m 26s
✔️ system-test-fedora-37 SUCCESS in 13m 11s
✔️ system-test-fedora-36 SUCCESS in 13m 07s

@debarshiray debarshiray merged commit 8af015e into containers:main Feb 17, 2023
@debarshiray debarshiray deleted the wip/rishi/authfile-style-fixes branch February 17, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant