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: nix flake update #5474

Merged
merged 2 commits into from
Feb 14, 2025
Merged

chore: nix flake update #5474

merged 2 commits into from
Feb 14, 2025

Conversation

adamhjk
Copy link
Collaborator

@adamhjk adamhjk commented Feb 13, 2025

Upgrade the versions of whats in our nix flake, in particular to catch an updated version of cfn-lint

Copy link

github-actions bot commented Feb 13, 2025

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

nickgerace
nickgerace previously approved these changes Feb 13, 2025
@nickgerace nickgerace added this pull request to the merge queue Feb 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 13, 2025
@nickgerace
Copy link
Contributor

@sprutton1 @fnichol these errors look a bit gnarly. I'm guessing updating the flake pushed some stuff over the edge?

@fnichol fnichol added this pull request to the merge queue Feb 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@fnichol fnichol added this pull request to the merge queue Feb 14, 2025
@fnichol fnichol removed this pull request from the merge queue due to a manual request Feb 14, 2025
@fnichol fnichol force-pushed the adamhjk/nix-flake-update branch from d984c1e to 5fabcc6 Compare February 14, 2025 02:18
@fnichol fnichol added this pull request to the merge queue Feb 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@fnichol fnichol added this pull request to the merge queue Feb 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@stack72 stack72 added this pull request to the merge queue Feb 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@fnichol
Copy link
Contributor

fnichol commented Feb 14, 2025

It's looking like we'll have to expand our Cyclone rootfs size again, I'll take a look

@fnichol
Copy link
Contributor

fnichol commented Feb 14, 2025

Nevermind, more like a dangling symlink when building bin/lang-js:

lang-js> ERROR: noBrokenSymlinks: the symlink /nix/store/yc5yb3cdvjyqzykwf4nz1w1aj9vxxxs9-lang-js/lib/ld-linux-x86-64.so.2 points to a missing target /nix/store
/4j0ghmjl1hia5h4fx9szjz0zzlr4ck9b-glibc-2.40-66/lib/ld-linux-x86-64.so.2
lang-js> ERROR: noBrokenSymlinks: found 1 dangling symlinks and 0 reflexive symlinks
error: builder for '/nix/store/qkdscpxj0ig5njnh39sbcwgyipiaxx1b-lang-js.drv' failed with exit code 1

@fnichol
Copy link
Contributor

fnichol commented Feb 14, 2025

New commit clears this error, confirmed locally on an x86_64-linux system by running: nix build -L .#lang-js

@fnichol fnichol added this pull request to the merge queue Feb 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@fnichol fnichol force-pushed the adamhjk/nix-flake-update branch from 86218be to ef76ee2 Compare February 14, 2025 20:17
@fnichol fnichol added this pull request to the merge queue Feb 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@fnichol fnichol added this pull request to the merge queue Feb 14, 2025
@fnichol fnichol removed this pull request from the merge queue due to a manual request Feb 14, 2025
Upgrade the versions of whats in our nix flake, in particular to catch
an updated version of cfn-lint
This fixes an issue where a Nix build phase now detects broken symlinks.
This was happening by design as we were creating a symlink for both
x86_64-linux and aarch64-linux systems no matter which system package
was being built.

The error was:

```
lang-js> ERROR: noBrokenSymlinks: the symlink /nix/store/yc5yb3cdvjyqzykwf4nz1w1aj9vxxxs9-lang-js/lib/ld-linux-x86-64.so.2 points to a missing target /nix/store
/4j0ghmjl1hia5h4fx9szjz0zzlr4ck9b-glibc-2.40-66/lib/ld-linux-x86-64.so.2
lang-js> ERROR: noBrokenSymlinks: found 1 dangling symlinks and 0 reflexive symlinks
error: builder for '/nix/store/qkdscpxj0ig5njnh39sbcwgyipiaxx1b-lang-js.drv' failed with exit code 1
```

The fix provided here computes the appropriate file name for the given
system and uses that when creating the symlink.

Signed-off-by: Fletcher Nichol <[email protected]>
@fnichol fnichol force-pushed the adamhjk/nix-flake-update branch from ef76ee2 to 0dba463 Compare February 14, 2025 21:42
@fnichol fnichol added this pull request to the merge queue Feb 14, 2025
Merged via the queue into main with commit 03ea718 Feb 14, 2025
10 checks passed
@fnichol fnichol deleted the adamhjk/nix-flake-update branch February 14, 2025 22:28
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.

4 participants