Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update versions in workflows #36

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
go-version: [1.21.x, 1.23.x]
steps:
- name: Setup Go
uses: actions/setup-go@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.3
version: v1.62.2
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
go-version: 1.23.x

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
version: latest
workdir: ./cmd/gemini
Expand Down
4 changes: 2 additions & 2 deletions gemini/generative_model_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func NewGenerativeModelBuilder() *GenerativeModelBuilder {

// newCopyGenerativeModelBuilder creates a new [GenerativeModelBuilder],
// taking the default values from an existing [genai.GenerativeModel] object.
func newCopyGenerativeModelBuilder(copy *genai.GenerativeModel) *GenerativeModelBuilder {
return &GenerativeModelBuilder{copy: copy}
func newCopyGenerativeModelBuilder(model *genai.GenerativeModel) *GenerativeModelBuilder {
return &GenerativeModelBuilder{copy: model}
}

// WithName sets the model name.
Expand Down
1 change: 1 addition & 0 deletions internal/handler/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func (r dataResponse) String() string {
return fmt.Sprintf("%s\n", string(r))
}

//nolint:errname
type errorResponse struct {
error
}
Expand Down
Loading