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

fix: pass both name and pname to buildVscodeExtension #184

Closed
wants to merge 1 commit into from
Closed

fix: pass both name and pname to buildVscodeExtension #184

wants to merge 1 commit into from

Conversation

Defelo
Copy link

@Defelo Defelo commented Nov 30, 2024

Supersedes #180 and #182

Sorry for creating a third PR on this, however I really would like this issue to be solved as quickly as possible as it is currently blocking stable 1.83.0 from being merged into main.

As suggested in #180 (comment) we could also try to detect which argument the function expects and pass the correct one, but I think just passing both arguments should be the simplest solution. Please let me know if there are any disadvantages to this approach.

@SuperSandro2000
Copy link
Member

Passing name and pname with different content is definitely not a good solution.

@Defelo
Copy link
Author

Defelo commented Nov 30, 2024

Passing name and pname with different content is definitely not a good solution.

Ok, could you explain why? If name is not set shouldn't it just default to "${pname}-${version}" (which in this case is exactly the same as the name we have here)? Which solution would you prefer?

@Sciencentistguy
Copy link

Defelo is right, previously name was just set to what is naturally produced by mkDerivation when pname and version are both present. so there's no change there

@srounce
Copy link

srounce commented Dec 1, 2024

Passing name and pname with different content is definitely not a good solution.

If you have a better one please feel free to share it, currently this is blocking projects from using latest nixpkgs so it'd be great to get this back to a working state in some way or other and then improve on it later.

@bryango
Copy link

bryango commented Dec 2, 2024

I am trying to fix this upstream at NixOS/nixpkgs#361052 as this also affects other projects.

PaulDance added a commit to JustRustThings/fenix that referenced this pull request Dec 2, 2024
Basically a cherry-pick of nix-community#184

Signed-off-by: Paul Mabileau <[email protected]>
@domenkozar
Copy link

Fixed in nixpkgs!

@Defelo Defelo closed this Dec 5, 2024
@Defelo Defelo deleted the staging branch December 5, 2024 08:34
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.

6 participants