Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>
  • Loading branch information
Yashvi Jain authored and Yashvi Jain committed Jan 28, 2025
1 parent accfa6c commit 2bdf59c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .studio/common
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,15 @@ document "build" <<EOF
Simple wrapper around /hab/bin/build
EOF
function build() {
install_if_missing "$(desired_golang_ident)" go
local hab_build
#set HAB_BLDR_CHANNEL to dev as part of the hab package refresh
local HAB_BLDR_CHANNEL=LTS-2024
local HAB_BLDR_CHANNEL=dev

# Support for hab v.0.63.0
if [ -f /bin/build ]; then
hab_build=/bin/build
fi

echo "Building from channel: $HAB_BLDR_CHANNEL"

# Support prior hab versions
if [ -f /hab/bin/build ]; then
Expand All @@ -221,7 +220,7 @@ function build() {
if [ -z "$hab_build" ]; then
exit_with "Hab build binary not found. Verify the 'build' wrapper inside the studio." 22
else
HAB_FEAT_IGNORE_LOCAL=false HAB_BLDR_CHANNEL=${HAB_BLDR_CHANNEL:-LTS-2024} $hab_build "$@"
HAB_FEAT_IGNORE_LOCAL=true HAB_BLDR_CHANNEL=${HAB_BLDR_CHANNEL:dev} HAB_FALLBACK_CHANNEL=${HAB_FALLBACK_CHANNEL:LTS-2024} $hab_build "$@"
fi
}

Expand Down

0 comments on commit 2bdf59c

Please sign in to comment.