Skip to content

Commit

Permalink
ci: update versions in workflows (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn authored Dec 13, 2024
1 parent 0dacfe2 commit b707d74
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
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

0 comments on commit b707d74

Please sign in to comment.