Skip to content

Commit

Permalink
Add deprecation notices for dep, gb, glide, godep, govendor
Browse files Browse the repository at this point in the history
Signed-off-by: Josh W Lewis <[email protected]>
  • Loading branch information
joshwlewis committed Aug 28, 2024
1 parent 475cbc5 commit 1431166
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,14 @@ warnPackageSpecOverride() {
fi
}

warnDeprecatedTool() {
local tool=$1
warn "This application is using ${tool}, but ${tool} is no longer maintained."
warn "${tool} support on Heroku is deprecated and will be removed on March 1, 2025."
warn "Please migrate to Go modules. Learn more about Go modules on Heroku here: https://devcenter.heroku.com/articles/go-modules."
}


# Sets up GOPATH (and posibly other GO* env vars) and returns the location of
# the source code as $src. The output of this function is meant to be eval'd'
setupGOPATH() {
Expand Down Expand Up @@ -708,6 +716,11 @@ if needConcurrency ${ver}; then
cp $buildpack/vendor/concurrency.sh $build/.profile.d/
fi

# dep, gb, glide, godep, govendor are all unmaintained.
if [ "${TOOL}" != "gomodules" ]; then
warnDeprecatedTool "$TOOL"
fi

t="${build}/.heroku/go"
mkdir -p "${t}"
t="${t}/.meta"
Expand Down

0 comments on commit 1431166

Please sign in to comment.