diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fddd115..296a8fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,10 +11,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ['1.24'] + go-version: ['1.25'] steps: - uses: actions/checkout@v6 + with: + submodules: true - name: Set up Go uses: actions/setup-go@v6 @@ -28,7 +30,7 @@ jobs: run: go test -v -race -coverprofile=coverage.out ./... - name: Upload coverage - if: matrix.go-version == '1.24' + if: matrix.go-version == '1.25' uses: codecov/codecov-action@v5 with: files: coverage.out @@ -38,11 +40,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + with: + submodules: true - name: Set up Go uses: actions/setup-go@v6 with: - go-version: '1.24' + go-version: '1.25' - name: golangci-lint uses: golangci/golangci-lint-action@v9 diff --git a/go.mod b/go.mod index 07f6980..483dcdf 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/git-pkgs/vers -go 1.24.2 +go 1.25.6 diff --git a/version.go b/version.go index 93a97e4..868cef6 100644 --- a/version.go +++ b/version.go @@ -721,8 +721,8 @@ func splitMavenVersionWithSeparators(s string) ([]string, []bool) { var afterDash []bool var current strings.Builder var lastWasDigit bool - var firstChar bool = true - var currentAfterDash bool = false // first component is never after dash + firstChar := true + currentAfterDash := false // first component is never after dash for _, c := range s { if c == '.' || c == '-' {