Skip to content

Update ci workflow to regenerate dotnet sdk hashes.#39

Merged
adampoit merged 1 commit into
masterfrom
dotnet-hashes
Jul 14, 2026
Merged

Update ci workflow to regenerate dotnet sdk hashes.#39
adampoit merged 1 commit into
masterfrom
dotnet-hashes

Conversation

@adampoit

Copy link
Copy Markdown
Owner

No description provided.

@not-adam

not-adam Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Mira PR Walkthrough

This PR enhances the CI workflow to automatically regenerate .NET SDK hashes in flake.nix when Renovate bot updates global.json. It introduces a new dotnet-sdk-hashes job that builds the devShell on both x86_64-linux and aarch64-darwin to extract updated SRI hashes, uploads them as artifacts, and then a modified nix-deps job downloads and applies them. The existing nix build job is also gated to skip when dependency metadata was just regenerated.

graph LR
    detect["nix-deps-changes: detect changes"]
    sdkHash["dotnet-sdk-hashes: build & extract SDK hash"]
    regen["nix-deps: regenerate Nix metadata"]
    build["nix: build & checks"]

    detect -->|"dotnet_sdk=true"| sdkHash
    sdkHash -->|"hash artifacts"| regen
    detect -->|"nuget/npm=true"| regen
    regen -->|"updated=false"| build
Loading
Confidence: 4/5   ◉◉◉◉○   Safe with minor fixes
  • Logic is sound and well-structured, but the sed-based hash extraction from nix build output is fragile and could break if Nix changes its error message format.

1 file reviewed


Comment @not-adam help to get the list of available commands and usage tips.

@adampoit
adampoit merged commit a7889dc into master Jul 14, 2026
6 checks passed
@adampoit
adampoit deleted the dotnet-hashes branch July 14, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant