Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Why do I get an error when using go1.21?#1055

Unanswered
SimFG asked this question inQ&A
Discussion options

The following is my workflow file:

jobs:  golangci:    name: lint    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4      - uses: actions/setup-go@v5        with:          go-version: 1.18      - name: golangci-lint core        uses: golangci/golangci-lint-action@v6        with:          version: latest          working-directory: ./core          args: --timeout=5m --out-format=colored-line-number ./...          skip-cache: true      - name: golangci-lint server        uses: golangci/golangci-lint-action@v6        with:          version: latest          working-directory: ./server          args: --timeout=5m --out-format=colored-line-number ./...          skip-cache: true

I don't have a go.mod file in my root directory, but there are in the core and server directories. If I use go1.18, github action will work fine, but if I use go1.21, I will get an error that the go file cannot be found.
Ies8QYWC7d

You must be logged in to vote

Replies: 1 comment

Comment options

ldez
Aug 1, 2024
Maintainer

I guess it's because you have a problem with yourgo.mod

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@SimFG@ldez

[8]ページ先頭

©2009-2025 Movatter.jp