Skip to content

Commit

Permalink
add --go to semver-select calls
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAbides committed Aug 10, 2023
1 parent 1f99b11 commit 3379a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ select_local_version() {
fi

# handle other constraints
local_matches="$(echo "$local_versions" | ./src/"semver-select" -c "$constraint" -n 1 -i -)"
local_matches="$(echo "$local_versions" | ./src/"semver-select" --go -c "$constraint" -n 1 -i -)"
if [ -n "$local_matches" ]; then
echo "$local_matches" | tail -1
fi
Expand All @@ -172,7 +172,7 @@ select_remote_version() {
return
fi

echo "$versions" | ./src/"semver-select" -c "$constraint" -n 1 -i -
echo "$versions" | ./src/"semver-select" --go -c "$constraint" -n 1 -i -
}

select_go_version_from_file() {
Expand Down

0 comments on commit 3379a80

Please sign in to comment.