Skip to content

Commit

Permalink
Excavator: Manage go module dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot committed Nov 8, 2024
1 parent 5dc2a47 commit 08ca01f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
23 changes: 23 additions & 0 deletions -excavator_output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
go mod operation failed. This may mean that there are legitimate dependency issues with the "go.mod" definition in the repository and the updates performed by the gomod check. This branch can be cloned locally to debug the issue.

Command that caused error:
./godelw check compiles

Output:
Running compiles...
../local/pkg/mod/golang.org/[email protected]/src/runtime/time.go:174:17: cannot range over 3 (untyped int constant)
-: This application uses version go1.21 of the source-processing packages but runs version go1.22 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.
../local/pkg/mod/golang.org/[email protected]/src/reflect/iter.go:67:19: cannot range over v.Len() (value of type int)
../local/pkg/mod/golang.org/[email protected]/src/reflect/iter.go:75:19: cannot range over v.Len() (value of type int)
../local/pkg/mod/golang.org/[email protected]/src/reflect/iter.go:131:19: cannot range over v.Len() (value of type int)
../local/pkg/mod/golang.org/[email protected]/src/reflect/iter.go:139:19: cannot range over v.Len() (value of type int)
../local/pkg/mod/golang.org/[email protected]/src/reflect/type.go:2320:19: cannot range over num (variable of type int)
-: This application uses version go1.21 of the source-processing packages but runs version go1.22 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.
../local/pkg/mod/golang.org/[email protected]/src/slices/iter.go:50:17: cannot range over seq (variable of type iter.Seq[E])
-: This application uses version go1.21 of the source-processing packages but runs version go1.22 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.
../local/pkg/mod/golang.org/[email protected]/src/unique/clone.go:76:12: cannot range over atyp.Len (variable of type uintptr)
-: This application uses version go1.21 of the source-processing packages but runs version go1.22 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.
../local/pkg/mod/golang.org/[email protected]/src/maps/iter.go:51:20: cannot range over seq (variable of type iter.Seq2[K, V])
-: This application uses version go1.21 of the source-processing packages but runs version go1.22 of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.
Finished compiles
Check(s) produced output: [compiles]
4 changes: 4 additions & 0 deletions excavator_fail/excavator_fail.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package fail

This is a non-compiling file that has been added to explicitly ensure that CI fails.

Check failure on line 3 in excavator_fail/excavator_fail.go

View workflow job for this annotation

GitHub Actions / Verify

expected declaration, found This
Remove this file if debugging locally.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/kr/pretty v0.1.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/net v0.31.0 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo=
golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0=
golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo=
golang.org/x/net v0.31.0/go.mod h1:P4fl1q7dY2hnZFxEk4pPSkDHF+QqjitcnDjUQyMM+pM=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ github.com/pmezard/go-difflib/difflib
# github.com/stretchr/testify v1.9.0
## explicit; go 1.17
github.com/stretchr/testify/assert
# golang.org/x/net v0.29.0
# golang.org/x/net v0.31.0
## explicit; go 1.18
golang.org/x/net/publicsuffix
# gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15
Expand Down

0 comments on commit 08ca01f

Please sign in to comment.