Skip to content

losslesscut: create a custom updateScript, 3.68.0 -> 3.69.0 - #541784

Merged
ShamrockLee merged 3 commits into
NixOS:masterfrom
ilkecan:update-losslesscut
Oct 9, 2026
Merged

ShamrockLee merged 3 commits into
NixOS:masterfrom
ilkecan:update-losslesscut

Conversation

@ilkecan

@ilkecan ilkecan commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Note

I am hoping we can get rid of the manual updateScript for this package (and some others) if Mic92/nix-update#640 is merged.

Things done


nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 541784
Commit: 3c3785c5ca40a6889f0775b8062df53c774c4d43


x86_64-linux

✅ 1 package built:
  • losslesscut

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jul 14, 2026
@ilkecan
ilkecan marked this pull request as ready for review July 14, 2026 12:39
@ilkecan
ilkecan force-pushed the update-losslesscut branch from 3c3785c to b9d2b5c Compare July 14, 2026 12:41
@nixpkgs-ci
nixpkgs-ci Bot requested review from ShamrockLee and shelvacu July 14, 2026 12:47
Comment thread pkgs/by-name/lo/losslesscut/update.sh Outdated
exit 0
fi

nix-update "$UPDATE_NIX_PNAME" --version "$latestVersion" || true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ignore errors (|| true)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created that file from copying pieces from other ones. Currently on nixpkgs there are 5 update.sh that include both yarn-berry-fetcher missing-hashes & nix-update strings and among them 4 of them use || true at the end of nix-update. So I happened to pick one of those.

Now that you raise this up, I don't know whether that has a real purpose or happened to become the majority due to cargo culting. And the reason I didn't dissect the script in detail was because I feel like having to generate missing-hashes.json manually between 2 nix-update invocations was unfortunate and was hoping this could also be delegated to nix-update. So I was considering this script as temporary (Mic92/nix-update#640), which I should probably mention in the PR description.

In any case, I can remove those if you prefer it that way.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I much prefer it that way. In general, but also in this particular case if this command fails, then the src (probably) hasn't been updated and yarn-berry-fetcher will end up running on the old source.

@shelvacu

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 541784
Commit: b9d2b5c59d266a2c8bd8eff927015f463ebd0021


x86_64-linux

✅ 1 package built:
  • losslesscut

@ilkecan
ilkecan force-pushed the update-losslesscut branch from b9d2b5c to f40e4a6 Compare July 15, 2026 12:57
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jul 15, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Oct 1, 2026
@ShamrockLee

Copy link
Copy Markdown
Contributor

This PR slipped out of my radar. Sorry for late reply.

@ShamrockLee

Copy link
Copy Markdown
Contributor

Could you update this PR and make it work after PR ##555729

This is because `nix-update` doesn't handle `yarn-berry-fetcher
missing-hashes` by itself.
@ilkecan
ilkecan force-pushed the update-losslesscut branch from f40e4a6 to 9a3fe0e Compare October 8, 2026 15:26
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Oct 8, 2026
@ilkecan

ilkecan commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 541784
Commit: 9a3fe0ea6407bfd8b70fedf8d8eb236db965718e


x86_64-linux

✅ 1 package built:
  • losslesscut

@nixpkgs-review-gha

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (b0ab82d)

Command: nixpkgs-review pr 541784
Commit: 9a3fe0ea6407bfd8b70fedf8d8eb236db965718e (subsequent changes)
Merge: 765fbf2b547d83299d9c1a564531f54242ab8531

Triggered by @ShamrockLee (44064051)
Logs: https://github.com/ShamrockLee/nixpkgs-review-gha/actions/runs/37805801042/attempts/1


x86_64-linux

✅ 1 package built:
  • losslesscut

aarch64-linux

✅ 1 package built:
  • losslesscut

aarch64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • losslesscut

@ilkecan

ilkecan commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

It seems aarch64-darwin build for this package has never been successful: https://hydra.nixos.org/job/nixpkgs/unstable/losslesscut.aarch64-darwin

I can set meta.platforms = lib.platforms.linux; in another commit if you prefer?

@shelvacu

shelvacu commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

I think you're supposed to do broken = stdenv.isDarwin; instead, because darwin is supported by losslesscut upstream, it's just the nix build that's broken

@shelvacu shelvacu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

marking darwin broken would be nice but not a blocker

@nixpkgs-ci nixpkgs-ci Bot removed the 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. label Oct 9, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. and removed 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. labels Oct 9, 2026
@ShamrockLee
ShamrockLee added this pull request to the merge queue Oct 9, 2026
Merged via the queue into NixOS:master with commit 08fe157 Oct 9, 2026
28 checks passed
@ilkecan
ilkecan deleted the update-losslesscut branch October 10, 2026 08:25
@ShamrockLee ShamrockLee added the backport release-26.05 Backport PR automatically label Nov 3, 2026
@nixpkgs-ci

nixpkgs-ci Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Backport failed for release-26.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-26.05
git worktree add -d .worktree/backport-541784-to-release-26.05 origin/release-26.05
cd .worktree/backport-541784-to-release-26.05
git switch --create backport-541784-to-release-26.05
git cherry-pick -x b4d510f2f5ee0c1da180e86ced452ab030e9af2a 9a3fe0ea6407bfd8b70fedf8d8eb236db965718e 6731ab8681619682fbc5f9ac6d99fb800a7c1661

@ShamrockLee ShamrockLee removed the backport release-26.05 Backport PR automatically label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: failed backport 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants