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

cmd: add support for --clear=config.{cmd,entrypoint} #107

Merged
merged 3 commits into from
Apr 5, 2017

Conversation

cyphar
Copy link
Member

@cyphar cyphar commented Apr 5, 2017

While the current UX for --config.cmd and --config.entrypoint seems odd
(since they aren't treated atomically, which doesn't make any sense).
But since we're currently treating them like ENV we need to provide a
way to explicitly clear them (even though we clear the old value when
creating a new one).

Reported-by: David Cassany dcassany@suse.com
Signed-off-by: Aleksa Sarai asarai@suse.de

While the current UX for --config.cmd and --config.entrypoint seems odd
(since they aren't treated atomically, which doesn't make any sense).
But since we're currently treating them like ENV we need to provide a
way to explicitly clear them (even though we clear the old value when
creating a new one).

Reported-by: David Cassany <dcassany@suse.com>
Signed-off-by: Aleksa Sarai <asarai@suse.de>
@cyphar
Copy link
Member Author

cyphar commented Apr 5, 2017

/cc @davidcassany

Signed-off-by: Aleksa Sarai <asarai@suse.de>
@cyphar cyphar force-pushed the add-clear-cmd-entrypoint branch 2 times, most recently from 0322a48 to 6ee1b85 Compare April 5, 2017 10:16
Signed-off-by: Aleksa Sarai <asarai@suse.de>
@davidcassany
Copy link

Looks good to me, thanks! However I could not try it, apparently I do not have the appropriate tool chain for compiling it 😛

@cyphar
Copy link
Member Author

cyphar commented Apr 5, 2017

You shouldn't need anything more than go. I mean, you could create a branch of the umoci OBS project, but that's probably a bit too much work to test a ~20 line change.

@cyphar
Copy link
Member Author

cyphar commented Apr 5, 2017

LGTM.

@cyphar cyphar merged commit 2a596ae into master Apr 5, 2017
cyphar referenced this pull request Apr 5, 2017
LGTMs: @cyphar
Closes openSUSE/umoci#107
@cyphar cyphar deleted the add-clear-cmd-entrypoint branch April 5, 2017 12:58
@cyphar cyphar added this to the 0.2.0 milestone Apr 10, 2017
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.

2 participants