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

feat: Fix --override-filename for flakes #301

Merged
merged 1 commit into from
Dec 8, 2024
Merged

feat: Fix --override-filename for flakes #301

merged 1 commit into from
Dec 8, 2024

Conversation

ede1998
Copy link
Contributor

@ede1998 ede1998 commented Nov 18, 2024

Closes #282

I ran pytest and tested it for a package in a flake.
I didn't test without flake as I don't know how to do that atm.

I'm a bit unsure with self.version_position.file = self.filename as I'm overwriting the filename unconditionally but if it wasn't passed by --override-filename but comes from the nix expression instead, it might not have the same source as the raw_version_positon (sanitizePosition (builtins.unsafeGetAttrPos "version" pkg) vs potentially sanitizePosition (positionFromMeta pkg) or sanitizePosition (builtins.unsafeGetAttrPos "src" pkg) ), which could break some other cases.

Btw, how am I supposed to properly run the formatter for the repo? Maybe sth. to add to the dev instructions in the README?

@Mic92
Copy link
Owner

Mic92 commented Nov 19, 2024

You can run the formatter by using the nix fmt command.

@ede1998
Copy link
Contributor Author

ede1998 commented Nov 19, 2024

Thank you. I ended up running nixfmt directly.

I was just confused with the treefmt.nix stuff.

@Mic92
Copy link
Owner

Mic92 commented Dec 8, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Dec 8, 2024

queue

🛑 The pull request has been merged manually

The pull request has been merged manually at cadf51a

@Mic92 Mic92 merged commit cadf51a into Mic92:main Dec 8, 2024
4 checks passed
Copy link
Contributor

mergify bot commented Dec 8, 2024

This pull request has been removed from the queue for the following reason: pull request dequeued.

Pull request #301 has been dequeued. The pull request has been merged manually. The pull request has been merged manually at cadf51a.

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.

If you want to requeue this pull request, you need to post a comment with the text: @mergifyio requeue

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.

git diff call fails, ".../default.nix" is outside repository at "/repo/path"
2 participants