Skip to content
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
5 changes: 5 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ jobs:
run: nix develop --command make -C go test
env:
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}

- name: Test golangci-lint module
run: nix develop --command make -C golangcilint test
env:
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.go_1_25
pkgs.go_1_27
pkgs.gh
pkgs.gotools
pkgs.gnumake
Expand Down
2 changes: 1 addition & 1 deletion go/fixtures/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module example.com/fixture

go 1.26
go 1.27
2 changes: 1 addition & 1 deletion go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func New(

func (g *Go) goContainer() (*dagger.Container, error) {
ctr := dag.Container().
From("golang:1.26-bookworm").
From("golang:1.27-bookworm").
WithMountedCache("/go/pkg/mod", dag.CacheVolume("go-mod")).
WithMountedCache("/root/.cache/go-build", dag.CacheVolume("go-build")).
WithWorkdir("/src").
Expand Down
3 changes: 3 additions & 0 deletions golangcilint/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY: test
test:
dagger call --source=../go/fixtures check
2 changes: 1 addition & 1 deletion golangcilint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
golangciLintImage string = "golangci/golangci-lint:v2.11"
golangciLintImage string = "golangci/golangci-lint:v2.15.0"
)

//go:embed .golangci.yml
Expand Down
Loading