-
Notifications
You must be signed in to change notification settings - Fork 315
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
Studio can build against downgraded channels #9282
Conversation
👷 Deploy Preview for chef-habitat processing.
|
components/hab/src/cli/hab/pkg.rs
Outdated
@@ -348,6 +348,13 @@ pub struct PkgBuild { | |||
/// Uses a Dockerized Studio for the build | |||
#[structopt(name = "DOCKER", short = "D", long = "docker")] | |||
docker: bool, | |||
/// Channel used to retrieve plan dpendencies for Chef supported origins |
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.
dependencies
http_proxy Sets an http_proxy environment variable inside the Studio | ||
https_proxy Sets an https_proxy environment variable inside the Studio | ||
no_proxy Sets a no_proxy environment variable inside the Studio | ||
ARTIFACT_PATH Sets the source artifact cache path (\`-a' option overrides) |
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.
missing HAB_REFRESH_CHANNEL
QUIET Prints less output (\`-q' flag overrides) | ||
SRC_PATH Sets the source path (\`-s' option overrides) | ||
VERBOSE Prints more verbose output (\`-v' flag overrides) | ||
HAB_LICENSE Set to 'accept' or 'accept-no-persist' to accept the Habitat license |
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.
missing HAB_REFRESH_CHANNEL
Signed-off-by: Matt Wrock <[email protected]>
Signed-off-by: Matt Wrock <[email protected]>
Signed-off-by: Matt Wrock <[email protected]>
Converting this to draft until windows packages are promoted to LTS-2024. |
Signed-off-by: Matt Wrock <[email protected]>
PR: #9282 COMMAND: patch test/end-to-end/test_studio_can_build_packages.ps1 \ <(diff <(git show ca4c091:test/end-to-end/test_studio_can_build_packages.ps1) \ <(git show ca4c091^:test/end-to-end/test_studio_can_build_packages.ps1)) Signed-off-by: Jason Heath <[email protected]>
…ed channels" This reverts commit 22bb081.
This introduces two new environment variables to the hab-plan-build script (linux and windows):
HAB_REFRESH_CHANNEL
specifies the channel used to pull dependencies forcore
,chef
andchef-platform
origins. The default isLTS-2024
which falls back tostable
if they cannot be found there.HAB_PREFER_LOCAL_CHEF_DEPS
is a boolean flag which defaults to false/unset. If set, this informs the build to choose a locally installed core/chef/chef-platform dependency over the one in the remote bldr channel. This would likely be used by the packages team when building a new set of refreshed packages where they need to build many deps locally in a particular order. It would also be used in our own release pipeline when we need to pull a locally built component (like a new new studio).The
hab pkg build
command has a new--refresh-channel
arg that is a convenience for feeding theHAB_REFRESH_CHANNEL
environment variable for a build. There is no convenience arg forHAB_PREFER_LOCAL_CHEF_DEPS
because that will likely only be used internally.One key thing to note here is that now, unless
HAB_PREFER_LOCAL_CHEF_DEPS
is set, core/chef/chef-platform deps will only ever come the remote refresh channel and they will not come from the latest locally installed package.I have removed the
IGNORE_LOCAL
feature flag since this now removes the need for that flag. We only ever needed/used this forcore
deps and now we essentially use it by default. It was also never publicly documented so I don't think we need to worry about it breaking anyone.