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

chore: use toolchain to set Go version #684

Merged
merged 4 commits into from
Jan 7, 2025
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/ci-go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
cache-dependency-path: "${{ matrix.dir }}/go.sum"
go-version-file: "${{ matrix.dir }}/go.mod"
- name: Run Linter
uses: golangci/golangci-lint-action@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
cache-dependency-path: "${{ matrix.dir }}/go.sum"
go-version-file: "${{ matrix.dir }}/go.mod"
- name: Run Unit Tests
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-runtime-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23
go-version: 1.23.4
cache-dependency-path: runtime/go.sum
- name: Run Integration Tests
working-directory: runtime
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-sdk-go-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
cache-dependency-path: ./sdk/go/go.sum
go-version-file: ./sdk/go/go.mod
- name: Build Program
run: go build .

Expand All @@ -78,8 +78,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
cache-dependency-path: "${{ matrix.dir }}/go.sum"
go-version-file: "${{ matrix.dir }}/go.mod"
- name: Setup TinyGo
uses: acifani/setup-tinygo@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
if: matrix.language == 'go'
uses: actions/setup-go@v5
with:
go-version-file: runtime/go.mod
go-version: 1.23.4
cache-dependency-path: runtime/go.sum

# Initializes the CodeQL tools for scanning.
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ jobs:
run: npm run build
- uses: actions/setup-go@v5
with:
go-version: 1.23
check-latest: true
go-version: 1.23.4
cache-dependency-path: runtime/go.sum
- uses: goreleaser/goreleaser-action@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-sdk-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
cache-dependency-path: ./sdk/go/go.sum
go-version-file: ./sdk/go/go.mod
- name: Prepare Release
working-directory: sdk/go
run: ./scripts/prepare-release.sh ${{ steps.parse_sdk_version.outputs.sdk_version }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- chore: add timezone header to api explorer [#672](https://github.com/hypermodeinc/modus/pull/672)
- fix: reimplement DynamicMap parsing [#678](https://github.com/hypermodeinc/modus/pull/678)
[#681](https://github.com/hypermodeinc/modus/pull/681)
- chore: use `toolchain` to set Go version [#684](https://github.com/hypermodeinc/modus/pull/684)

## 2025-01-06 - CLI 0.16.2

Expand Down
4 changes: 3 additions & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
go 1.23.4
go 1.23.1

toolchain go1.23.4

use (
./lib/manifest
Expand Down
4 changes: 3 additions & 1 deletion lib/manifest/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/hypermodeinc/modus/lib/manifest

go 1.23
go 1.23.1

toolchain go1.23.4

require (
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
Expand Down
4 changes: 3 additions & 1 deletion lib/metadata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/hypermodeinc/modus/lib/metadata

go 1.23
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/lib/wasmextractor v0.13.0

Expand Down
4 changes: 3 additions & 1 deletion lib/wasmextractor/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/hypermodeinc/modus/lib/wasmextractor

go 1.23
go 1.23.1

toolchain go1.23.4
4 changes: 3 additions & 1 deletion runtime/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/hypermodeinc/modus/runtime

go 1.23.4
go 1.23.1

toolchain go1.23.4

require (
github.com/hypermodeinc/modus/lib/manifest v0.15.0
Expand Down
4 changes: 3 additions & 1 deletion runtime/languages/golang/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module testdata

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/anthropic-functions/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module anthropic-functions-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0

Expand Down
4 changes: 3 additions & 1 deletion sdk/go/examples/auth/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module auth-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/classification/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module classification-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/collections/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module collection-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/dgraph/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module dgraph-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/embedding/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module embedding-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0

Expand Down
4 changes: 3 additions & 1 deletion sdk/go/examples/graphql/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module graphql-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/http/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module http-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/neo4j/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module neo4j-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/postgresql/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module postgresql-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/simple/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module simple-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/textgeneration/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module text-generation-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0

Expand Down
4 changes: 3 additions & 1 deletion sdk/go/examples/time/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module time-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
4 changes: 3 additions & 1 deletion sdk/go/examples/vectors/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module vectors-example

go 1.23.4
go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0

Expand Down
2 changes: 2 additions & 0 deletions sdk/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module github.com/hypermodeinc/modus/sdk/go

go 1.23.1

toolchain go1.23.4

require (
github.com/hypermodeinc/modus/lib/manifest v0.15.0
github.com/hypermodeinc/modus/lib/wasmextractor v0.13.0
Expand Down
2 changes: 2 additions & 0 deletions sdk/go/templates/default/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ module my-modus-app

go 1.23.1

toolchain go1.23.4

require github.com/hypermodeinc/modus/sdk/go v0.16.0
Loading