From 36a3f227f0fe6f0772b832fc3064673616cb1d60 Mon Sep 17 00:00:00 2001 From: John McBride Date: Thu, 13 Aug 2026 14:53:07 -0500 Subject: [PATCH 1/2] chore: bump Dagger to 0.21.8 --- .github/workflows/pr.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index ba26e66..99498f1 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -9,7 +9,7 @@ permissions: pull-requests: read env: - DAGGER_VERSION: "0.20.8" + DAGGER_VERSION: "0.21.8" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 - name: Install Dagger - uses: dagger/dagger-for-github@v8.2.0 + uses: dagger/dagger-for-github@v8.4.1 with: version: ${{ env.DAGGER_VERSION }} @@ -49,7 +49,7 @@ jobs: uses: actions/checkout@v4 - name: Install Dagger - uses: dagger/dagger-for-github@v8.2.0 + uses: dagger/dagger-for-github@v8.4.1 with: version: ${{ env.DAGGER_VERSION }} From 1774da3539612b8303dabf4bc886195041ed34b9 Mon Sep 17 00:00:00 2001 From: John McBride Date: Thu, 13 Aug 2026 16:03:52 -0500 Subject: [PATCH 2/2] chore: manage Dagger via Nix flake (0.21.8) --- .github/workflows/pr.yaml | 25 ++++++++++++------------- flake.lock | 21 +++++++++++++++++++++ flake.nix | 6 +++++- 3 files changed, 38 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 99498f1..31d50f6 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,9 +8,6 @@ permissions: contents: read pull-requests: read -env: - DAGGER_VERSION: "0.21.8" - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -24,14 +21,15 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Dagger - uses: dagger/dagger-for-github@v8.4.1 - with: - version: ${{ env.DAGGER_VERSION }} + - name: Install Nix + uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8 + + - name: Cache Nix store + uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14 - name: Check PR title conformance run: | - dagger call -m github.com/papercomputeco/daggerverse/ghcontrib \ + nix develop --command dagger call -m github.com/papercomputeco/daggerverse/ghcontrib@45e997aec734ec4875ff57bebed2317e1bd49185 \ --token=env://GH_TOKEN \ --repo="${{ github.repository }}" \ check-pull-request \ @@ -48,14 +46,15 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Dagger - uses: dagger/dagger-for-github@v8.4.1 - with: - version: ${{ env.DAGGER_VERSION }} + - name: Install Nix + uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8 + + - name: Cache Nix store + uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14 - name: Check Linear magic word run: | - dagger call -m github.com/papercomputeco/daggerverse/ghcontrib \ + nix develop --command dagger call -m github.com/papercomputeco/daggerverse/ghcontrib@45e997aec734ec4875ff57bebed2317e1bd49185 \ --token=env://GH_TOKEN \ --repo="${{ github.repository }}" \ check-pull-request-linear-magic-word \ diff --git a/flake.lock b/flake.lock index f05b020..1c453e6 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,25 @@ { "nodes": { + "dagger": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1785344846, + "narHash": "sha256-E0v8IiF9sEWNw615Yae1RH8KtMuOOF+mcafu2m0kHyE=", + "owner": "dagger", + "repo": "nix", + "rev": "b35b2b5ab62ace3a3c1e779c497de1ad762a4aa1", + "type": "github" + }, + "original": { + "owner": "dagger", + "repo": "nix", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -36,6 +56,7 @@ }, "root": { "inputs": { + "dagger": "dagger", "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } diff --git a/flake.nix b/flake.nix index 110221b..294ad06 100644 --- a/flake.nix +++ b/flake.nix @@ -4,9 +4,11 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; + dagger.url = "github:dagger/nix"; + dagger.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { self, nixpkgs, flake-utils }: + outputs = { self, nixpkgs, flake-utils, dagger }: { overlays.default = final: prev: { agentd = final.buildGoModule { @@ -85,6 +87,8 @@ # Test tools hurl + + dagger.packages.${system}.dagger ]; shellHook = ''