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

Using finalAttrs.src.tag breaks if src is overriden to use rev #367739

Open
Artturin opened this issue Dec 23, 2024 · 5 comments
Open

Using finalAttrs.src.tag breaks if src is overriden to use rev #367739

Artturin opened this issue Dec 23, 2024 · 5 comments
Labels
0.kind: bug Something is broken

Comments

@Artturin
Copy link
Member

Artturin commented Dec 23, 2024

error: cannot coerce null to a string: null

Happens in dunst as it now does changelog = "https://github.com/dunst-project/dunst/blob/${finalAttrs.src.tag}/CHANGELOG.md";

The fix is to not use finalAttrs in meta.

https://github.com/nix-community/nixpkgs-wayland/actions/runs/12472468718/job/34811407386#step:5:3478

https://github.com/NixOS/nixpkgs/pull/366584/files#r1896119706

#355973

@Artturin Artturin added the 0.kind: bug Something is broken label Dec 23, 2024
@philiptaron
Copy link
Contributor

philiptaron commented Dec 23, 2024

The fix is to not use finalAttrs.src in meta.

Pretty strongly agree with this.

@Atemu
Copy link
Member

Atemu commented Dec 23, 2024

I think the actual issue is depending on the internals of src at all, no matter the method to access it.

I've elaborated on this in #362692 before.

You should just define a tag and use it in both places; whether that's using finalAttrs, a let binding or whatever.

@ambroisie
Copy link
Contributor

Should the changelog link's semantics be:

  • here are the release notes for this (specific) packaged version
  • here are the release notes for (any) version

IMO it should be the latter.

@Atemu
Copy link
Member

Atemu commented Dec 23, 2024

@ambroisie that's a separate discussion for which there already exists a separate issue.

@ambroisie
Copy link
Contributor

Ah, didn't know, will look for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

4 participants