Skip to content

Commit

Permalink
change go.mod file in scripts/buildtools to text file
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed May 11, 2022
1 parent ad330f1 commit e8bff0b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 27 deletions.
23 changes: 0 additions & 23 deletions scripts/buildtools/go.mod

This file was deleted.

6 changes: 3 additions & 3 deletions scripts/buildtools/install_buildtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cd ${SCRIPTPATH}

function get_go_version {
cd "${SCRIPTPATH}"
VERSION=$( grep "$1" 2>/dev/null < ./go.mod | awk -F " " '{print $2}')
VERSION=$( grep "$1" 2>/dev/null < ./versions | awk -F " " '{print $2}')
echo "$VERSION"
return
}
Expand All @@ -67,11 +67,11 @@ function install_go_module {
MODULE=$1
fi

# Check for version to go.mod version
# Check for version
VERSION=$(get_go_version "$1")

if [ -z "$VERSION" ]; then
echo "Unable to install requested package '$1' (${MODULE}): no version listed in ${SCRIPTPATH}/go.mod"
echo "Unable to install requested package '$1' (${MODULE}): no version listed in ${SCRIPTPATH}/versions"
exit 1
else
OUTPUT=$(go install "${MODULE}@${VERSION}" 2>&1)
Expand Down
6 changes: 6 additions & 0 deletions scripts/buildtools/versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
golang.org/x/tools v0.1.5
github.com/algorand/msgp v1.1.51
github.com/algorand/oapi-codegen v1.3.7
github.com/go-swagger/go-swagger v0.25.0
gotest.tools/gotestsum v1.6.4
2 changes: 1 addition & 1 deletion scripts/travis/codegen_verification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ echo Checking Enlistment...
if [[ -n $(git status --porcelain) ]]; then
echo Enlistment is dirty - did you forget to run make?
git status -s
git diff
git --no-pager diff
exit 1
else
echo Enlistment is clean
Expand Down

0 comments on commit e8bff0b

Please sign in to comment.