Issue with Autobuild for go 1.21.0 modules
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia con la versione segnalata di go.mod e i log di autobuild di CodeQL, quindi esamina il modo in cui l’action seleziona e invoca gli strumenti Go per i progetti basati su moduli. Riproduci il problema con un modulo Go 1.21.0 e verifica che autobuild e l’estrazione delle dipendenze terminino senza l’errore di versione non valida.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello! I'm not sure if this is the correct place to open this issue, but I recently updated my repo to the latest version of go (1.21). As per their release notes:
Go 1.21 introduces a small change to the numbering of releases. In the past, we used Go 1.N to refer to both the overall Go language version and release family as well as the first release in that family. Starting in Go 1.21, the first release is now Go 1.N.0. Today we are releasing both the Go 1.21 language and its initial implementation, the Go 1.21.0 release. These notes refer to “Go 1.21”; tools like go version will report “go1.21.0” (until you upgrade to Go 1.21.1). See “Go versions” in the “Go Toolchains” documentation for details about the new version numbering.
When updating modules now this new release numbering is used - see https://github.com/gilcrest/diygoapi/blob/main/go.mod
After updating to this, Autobuild on Github has the following errors.
2023/08/15 05:43:47 Found go.mod, enabling go modules
go: errors parsing go.mod:
/home/runner/work/diygoapi/diygoapi/go.mod:3: invalid go version '1.21.0': must match format 1.23
2023/08/15 05:43:47 Running /usr/bin/go failed, continuing anyway: exit status 1
2023/08/15 05:43:47 Failed to run `go mod tidy -e`
2023/08/15 05:43:47 Import path is 'github.com/gilcrest/diygoapi'
2023/08/15 05:43:47 Build failed, continuing to install dependencies.
2023/08/15 05:43:47 Installing dependencies using `go get -v ./...` in `.`.
go: errors parsing go.mod:
/home/runner/work/diygoapi/diygoapi/go.mod:3: invalid go version '1.21.0': must match format 1.23
2023/08/15 05:43:47 Running /usr/bin/go failed, continuing anyway: exit status 1
2023/08/15 05:43:47 Running extractor command '/opt/hostedtoolcache/CodeQL/2.14.1/x64/codeql/go/tools/linux64/go-extractor [./...]' from directory '.'.
2023/08/15 05:43:[48](https://github.com/gilcrest/diygoapi/actions/runs/5863951675/job/15898240560#step:4:49) Build flags: ''; patterns: './...'
2023/08/15 05:43:48 Running packages.Load.
2023/08/15 05:43:48 Error running go tooling: err: exit status 1: stderr: go: errors parsing go.mod:
/home/runner/work/diygoapi/diygoapi/go.mod:3: invalid go version '1.21.0': must match format 1.23
2023/08/15 05:43:48 Extraction failed: exit status 1
Error: We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.14.1/x64/codeql/go/tools/autobuild.sh". Exit code was 1 and error was: 2023/08/15 05:43:47 Autobuilder was built with go1.20.5, environment has go1.20.7
2023/08/15 05:43:47 LGTM_SRC is /home/runner/work/diygoapi/diygoapi
2023/08/15 05:43:47 Found go.mod, enabling go modules
go: errors parsing go.mod:
/home/runner/work/diygoapi/diygoapi/go.mod:3: invalid go version '1.21.0': must match format 1.23
2023/08/15 05:43:47 Running /usr/bin/go failed, continuing anyway: exit status 1
2023/08/15 05:43:47 Failed to run `go mod tidy -e`
2023/08/15 05:43:47 Import path is 'github.com/gilcrest/diygoapi'
2023/08/15 05:43:47 Build failed, continuing to install dependencies.
2023/08/15 05:43:47 Installing dependencies using `go get -v ./...` in `.`.
go: errors parsing go.mod:
/home/runner/work/diygoapi/diygoapi/go.mod:3: invalid go version '1.21.0': must match format 1.23
2023/08/15 05:43:47 Running /usr/bin/go failed, continuing anyway: exit status 1
2023/08/15 05:43:47 Running extractor command '/opt/hostedtoolcache/CodeQL/2.14.1/x64/codeql/go/tools/linux64/go-extractor [./...]' from directory '.'.
2023/08/15 05:43:48 Build flags: ''; patterns: './...'
2023/08/15 05:43:48 Running packages.Load.
2023/08/15 05:43:48 Error running go tooling: err: exit status 1: stderr: go: errors parsing go.mod:
/home/runner/work/diygoapi/diygoapi/go.mod:3: invalid go version '1.21.0': must match format 1.23
2023/08/15 05:43:48 Extraction failed: exit status 1
Any help you can provide for this is much appreciated!
Best,
Dan
- Lingua principale
- TypeScript
- Stelle
- 1.6k
- Fork
- 493
- Merge medio
- 1g 13h
- PR unite (30g)
- 44
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/codeql-action
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
github/codeql-action#4052 · 4 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
github/codeql-action#4078 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
github/codeql-action#4008 · 9 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
github/codeql-action#3978 · 4 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
github/codeql-action#3915 · 6 commenti · 3 reazioni ·
Tutte le issue di github/codeql-action
Issue simili
-
Claiming namespace Londopy Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
EclipseFdn/open-vsx.org#13385 · 1 commento ·
-
S: triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
fix(errors): EHOSTUNREACH from a happy-eyeballs connect is reported as a resolver error (STAMP-80) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
snapshot-labs/stamp#666 ·
-
vangogh
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
knaw-huc/textannoviz#691 ·