-
Notifications
You must be signed in to change notification settings - Fork 23
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
Refactor ubuntu setup #432
base: main
Are you sure you want to change the base?
Conversation
7e8bfd1
to
15a8906
Compare
frontend/deb/distro/install.go
Outdated
apt autoclean -y | ||
|
||
apt update | ||
apt install -y $@ |
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.
apt install -y $@ | |
apt install -y "$@" |
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.
Quoting here would turn a list of packages into one single argument to apt
which I don't think we want.
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.
$@
has special behavior when double-quoted, see the manual
From the manual:
That is, "$@" is equivalent to "$1" "$2" [... and so on]
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.
TIL
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.
Good work overall. But I really think we need to find a solution for installing packages without introducing implicit parameter ordering.
15a8906
to
6f15602
Compare
All updated. |
Needs a rebase and it's failing a test, but I'll approve once that's sorted. |
6f15602
to
f3d5448
Compare
This is rebased. |
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.
One typo that needs to be fixed in the install-with-constraints
script, and a few other small comments.
f3d5448
to
1bd4f19
Compare
Rebased and comments addressed. |
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This does actually end up changing the ordering, which I think is more correct. If a client has supplied a context with an image name then we should assume we need to install the distro's base build packages into it, unlike when the worker context ref is used where we expect that the provided image is the actual worker. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This was always a bit janky. We really can't guarentee that all implementations package repos from a worker to install images into a target, and this work-around was just to make the test pass. Instead the test is now just deleted since it doesn't make sense. While it is technically possible to do this on azlinux people should be using the custom repo support add extra repos. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This allows us to have a common implementation of a bunch of the things that underpins building a deb package. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This moves the rest of the logic from the jammy package into the distro config. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Do not require correct ordering of constraints options for apt/deb functions. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
1bd4f19
to
d1fec18
Compare
Rebased again. |
Extracts all the jammy logic into reusable components.
See individual commits for more details.