Skip to content

Upgrade repository#6

Merged
stefanvanburen merged 7 commits intomainfrom
svanburen/upgrade
Apr 7, 2026
Merged

Upgrade repository#6
stefanvanburen merged 7 commits intomainfrom
svanburen/upgrade

Conversation

@stefanvanburen
Copy link
Copy Markdown
Member

Follow up to #5. This upgrades:

  • buf to latest
  • golangci-lint to match buf's version, up to v2
    • Fixes some minor lints
  • go.mod version to 1.25.0 (n-1)
  • Add 2026 to copyright years

Follow up to #5. This upgrades:

* `buf` to latest
* `golangci-lint` to match buf's version, up to v2
  * Fixes some minor lints
* go.mod version to 1.25.0 (n-1)
* Add 2026 to copyright years
@stefanvanburen stefanvanburen changed the title Various upgrades Upgrade repository Mar 19, 2026
@stefanvanburen
Copy link
Copy Markdown
Member Author

Seems that CI isn't running on branches yet; fixed that in this PR, but won't run until this lands on main. In the meantime, locally the following works:

$ make test; and make lint
license-header \
                --license-type apache \
                --copyright-holder "Buf Technologies, Inc." \
                --year-range "2025-2026" --ignore testdata/
go build ./...
go test -vet=off -race -cover ./...
ok      buf.build/go/app        1.328s  coverage: 38.3% of statements
ok      buf.build/go/app/appcmd 1.762s  coverage: 51.0% of statements
        buf.build/go/app/appcmd/appcmdtesting           coverage: 0.0% of statements
ok      buf.build/go/app/appext 1.538s  coverage: 25.7% of statements
go vet ./...
GOTOOLCHAIN=go1.26.1 golangci-lint run --modules-download-mode=readonly --timeout=3m0s
0 issues.

@stefanvanburen stefanvanburen marked this pull request as ready for review March 19, 2026 17:51
Comment thread appcmd/appcmd.go Outdated
Comment on lines +333 to +335
*runErrAddr = errors.New("Sub-command required.")
*runErrAddr = errors.New("sub-command required")
} else {
*runErrAddr = fmt.Errorf("Unknown sub-command: %s", strings.Join(args, " "))
*runErrAddr = fmt.Errorf("unknown sub-command: %s", strings.Join(args, " "))
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we feel strongly about keeping these?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think they need to be capitalised for consistency with the way the errors are displayed through the tooling that use this framework currently.

And use latest/previous names, similar to connect-go.
Keeping around the dropped period, though, which seems more consistent.
@stefanvanburen stefanvanburen merged commit 833f8f9 into main Apr 7, 2026
4 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/upgrade branch April 7, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants