-
Notifications
You must be signed in to change notification settings - Fork 166
Use Verify to check required commands are present #598
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
base: main
Are you sure you want to change the base?
Conversation
obbardc
left a comment
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.
looks fine to me
obbardc
left a comment
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.
nitpick
e4d690a to
85ed64c
Compare
| return | ||
| } | ||
|
|
||
| if !runInFakeMachine && !fakemachine.InMachine() { |
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.
are these few lines a merge error ? they dont look like they belong here
| } | ||
|
|
||
| if !runInFakeMachine { | ||
| // Either we're on the host and intend to run on it, |
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.
can you just call CheckEnvironment independently of all of this ? in same area as Verify ?
85ed64c to
399024c
Compare
Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
Verify (which should be called Prepare) must run before the fakemachine is created, in order to setup the arguments for the fakemachine itself. It then has to run again in the fakemachine in order to rebuild any necessary internal state. Command checking can only occur in the same environment as run, as commands that are in the path when running may not be available to the regular user (e.g. Debian installs debootstrap in sbin). Signed-off-by: Ed Smith <ed.smith@collabora.com> Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
399024c to
7010a53
Compare
sjoerdsimons
left a comment
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.
Need to verify the mmdebstrap action as well
|
@daissi is there a reason for this to be a draft? |
Signed-off-by: Ed Smith <ed.smith@collabora.com> Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
7010a53 to
e7f54b5
Compare
Fixed! |
Just because I haven't addressed all the comments, but let's remove the draft status. |
|
@daissi this needs rebasing on main & couple of simple comments actioning :-) |
For each action, check that as many commands it needs are available as possible. This can't be meaningfully extended to commands that run in the chroot, or might run in the chroot.
This follows up from comments on #276 which were captured as issue #280.
Closes: #280
Based on: #283