Skip to content

Commit

Permalink
Fix for 4101 (#4102)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaby76 committed May 19, 2024
1 parent 5f0b82f commit 5208de4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions _scripts/templates/Go/st.build.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated from trgen <version>

$version = Select-String -Path "go.mod" -Pattern "github.com/antlr4-go/antlr/v4" | ForEach-Object { $_.Line.Split(" ")[1] } | ForEach-Object { $_ -replace 'v' }

$version="4.13.1"
$env:GO111MODULE = "on"
For ($i=0; $i -le 5; $i++) {
$(& go get github.com/antlr4-go/antlr/v4@v$version ; $compile_exit_code = $LASTEXITCODE) | Write-Host
Expand Down
3 changes: 1 addition & 2 deletions _scripts/templates/Go/st.build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated from trgen <version>

version=`grep 'github.com/antlr4-go/antlr/v4' go.mod | awk '{print $2}' | sed 's/v//'`

version="4.13.1"
export GO111MODULE=on
for i in {1..5}; do go get github.com/antlr4-go/antlr/v4@v$version; if [ "$?" = "0" ]; then break; fi; done; if [ "$?" != "0" ]; then exit 1; fi

Expand Down
File renamed without changes.

0 comments on commit 5208de4

Please sign in to comment.