GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: simplify nix hash updates by gigamonster256 · Pull Request #9309 · anomalyco/opencode

Conversation

@gigamonster256

@gigamonster256 gigamonster256 commented Jan 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

exposes the platform specific node_module derivations at the flake level so that any builder can calculate any host platform hash

allows 1 builder to update all 4 supported platform hashes - turning 5 jobs and 4 artifacts into 1 job

NOTE: i had opus make the changes to the workflow, I'm not super familiar with actions

manually verified that all 4 current hashes match up with the new exposed package hashes

supersedes #8985

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the needs:title label Jan 18, 2026
@github-actions

github-actions Bot commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Hey! Your PR title ci: simplifty nix hash updates doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Found a potentially related PR:

PR #8985: "feat(nix): nix-shell shebang update-hashes script"
#8985

This PR appears to be related as it also deals with nix hash updates. It may address the same problem or provide complementary changes to the nix hash update process.

All other results returned the current PR itself (#9309), which indicates no other closely matching open PRs exist.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gigamonster256 gigamonster256 changed the title ci: simplifty nix hash updates ci: simplify nix hash updates Jan 18, 2026
@gigamonster256
ci: simplify nix hash updates
fd4735d
exposes the platform specific node_module derivations at the flake
level so that any builder can calculate any host platform hash

allows 1 builder to update all 4 supported platform hashes -
turning 5 jobs and 4 artifacts into 1 job
@gigamonster256
gigamonster256 force-pushed the push-pymxkxsxvmxr branch from c1700b2 to fd4735d Compare January 18, 2026 23:09
@gigamonster256

gigamonster256 commented Jan 18, 2026

Copy link
Copy Markdown
Contributor Author

maybe its time i write a prefetch-bun-deps to parallel prefetch-npm-deps

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node merged commit 2fc4ab9 into anomalyco:dev Jan 19, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node

rekram1-node commented Jan 19, 2026

Copy link
Copy Markdown
Member

hmm @gigamonster256

Computing hash for x86_64-linux...
copying path '/nix/store/i0434khkhh8qf82py9265hk0a5xkr33k-source' from 'https://cache.nixos.org/'...
error: flake 'git+file:///home/runner/_work/opencode/opencode' does not provide attribute 'packages.x86_64-linux.packages.x86_64-linux.x86_64-linux_node_modules', 'legacyPackages.x86_64-linux.packages.x86_64-linux.x86_64-linux_node_modules' or 'packages.x86_64-linux.x86_64-linux_node_modules'
       Did you mean x86_64_linux_node_modules?
Failed to determine correct node_modules hash for x86_64-linux.
copying path '/nix/store/i0434khkhh8qf82py9265hk0a5xkr33k-source' from 'https://cache.nixos.org/'...
error: flake 'git+file:///home/runner/_work/opencode/opencode' does not provide attribute 'packages.x86_64-linux.packages.x86_64-linux.x86_64-linux_node_modules', 'legacyPackages.x86_64-linux.packages.x86_64-linux.x86_64-linux_node_modules' or 'packages.x86_64-linux.x86_64-linux_node_modules'
       Did you mean x86_64_linux_node_modules?
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gigamonster256 gigamonster256 mentioned this pull request Jan 19, 2026
fix: nix ci - swapped dash/underscore #9352
Merged
@gigamonster256

gigamonster256 commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

oops, didn't catch the mismatched hypen/underscore - see #9352

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gigamonster256
gigamonster256 deleted the push-pymxkxsxvmxr branch January 20, 2026 18:14
@ndrwstn

ndrwstn commented Jan 31, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Hey @gigamonster256 - I believe this broke nix-darwin's hash calculation. While it seems like you can calculate nix-darwin hashes on a linux runner (which surprised me) it may not be recommended as it is sometimes unreliable? Obviously it did work for more than 10 days, but it stopped working now.

I can't get anything to build since around v1.1.42 via the flake in Darwin, and I think there was an update to bun.lock for 1.1.43 which would have significantly changed the hashes, and may have caused the linux runner hash update to become unreliable for nix-darwin?

I'm not 100% -- I've just been trying to figure out what's wrong for part of today when I had time, but codex seems pretty sure that's the issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ndrwstn ndrwstn mentioned this pull request Jan 31, 2026
Nix darwin hashes unreliable from Linux runner #11408
Closed
@jerome-benoit jerome-benoit mentioned this pull request Jan 31, 2026
fix(nix): restore native runners for darwin hash computation #11495
Merged
jerome-benoit added a commit to jerome-benoit/opencode that referenced this pull request Jan 31, 2026
@jerome-benoit
fix(nix): restore native runners for darwin hash computation
89ca748
PR anomalyco#9309 simplified CI by using cross-compilation flags on a single
Linux runner, but bun install --cpu=X --os=Y doesn't produce identical
output to native bun install on macOS, causing hash mismatches.

This restores native runners for each platform:
- linux-x64: blacksmith-4vcpu-ubuntu-2404
- linux-arm64: blacksmith-4vcpu-ubuntu-2404-arm
- darwin-x64: macos-15-intel
- darwin-arm64: macos-latest

Also simplifies flake.nix by removing cross-compilation matrix and
using a single node_modules_updater per system.

Fixes anomalyco#11491
Fixes anomalyco#11408
jerome-benoit added a commit to jerome-benoit/opencode that referenced this pull request Jan 31, 2026
@jerome-benoit
fix(nix): restore native runners for darwin hash computation
90a5f98
PR anomalyco#9309 simplified CI by using cross-compilation flags on a single
Linux runner, but bun install --cpu=X --os=Y doesn't produce identical
output to native bun install on macOS, causing hash mismatches.

This restores native runners for each platform:
- linux-x64: blacksmith-4vcpu-ubuntu-2404
- linux-arm64: blacksmith-4vcpu-ubuntu-2404-arm
- darwin-x64: macos-15-intel
- darwin-arm64: macos-latest

Also simplifies flake.nix by removing cross-compilation matrix and
using a single node_modules_updater per system.

Fixes anomalyco#11491
Fixes anomalyco#11408
@gigamonster256

gigamonster256 commented Jan 31, 2026

Copy link
Copy Markdown
Contributor Author

hmm, guess ill bisect to see where it started failing... probably something with the hash normalization step failing or something.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
@gigamonster256
ci: simplify nix hash updates (anomalyco#9309)
a411692
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
@gigamonster256
ci: simplify nix hash updates (anomalyco#9309)
29084ae
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
@gigamonster256
ci: simplify nix hash updates (anomalyco#9309)
0486965
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@gigamonster256
ci: simplify nix hash updates (#9309)
fcfa5b9
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
@gigamonster256
ci: simplify nix hash updates (anomalyco#9309)
649f99f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs:title

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@gigamonster256 @rekram1-node @ndrwstn
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.