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
Better distinguish # via [current project]
comment
#13
Comments
Yeah I removed the Do you happen to know if there are easy ways to discern where the config is set? |
I'm guessing there isn't a way to determine that. It looks to be merged without a trace. I think it's acceptable to not mention that it's pyproject.toml. But I'm mainly saying that mentioning the project name is misleading. |
Could be |
How do you feel about |
What do you mean? |
Easy change in the code btw 😁 - f"{self.metadata.name}",
+ f"hatch.envs.{self.name}", |
I was thinking of a situation where the default env would get the But, I think you're right. Just staying consistent with |
# [v1.0.2](v1.0.1...v1.0.2) (2023-11-24) ## 🐛 Bug Fixes - [`e5d967f`](e5d967f) clarify dependency source (Issues: [`#13`](#13)) [skip ci]
🎉 This issue has been resolved in version 1.0.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hi!
I was just looking at the latest lock file in my env.
It had this entry, for example
where "mkdocs-literate-nav" is the current project's name. But I was very confused - this
detached
env shouldn't be depending on the project itself, andmkdocs-literate-nav
is not written as a dependency in it anywhere.So I started debugging why there's a dependency.
But actually there isn't a dependency!
# via [current project]
just stands for "specified in pyproject.toml"Before this change it was at least
# via [current project] (pyproject.toml)
and that was quite a bit clearer.https://github.com/juftin/hatch-pip-compile/pull/9/files#diff-a17e936862775c98a1a6459602e69226471d05e2d151d52b61a73d80a54e86d0L165
I think I'd like to get back that extra clarification.
Here's what pip-compile itself shows normally:
The project's name is not mentioned and that makes a lot more sense.
I think the line should become something like
# via pyproject.toml (docs)
. Although I suppose the config doesn't even have to be in pyproject.toml, maybe it's hatch.toml, so not so obvious...The text was updated successfully, but these errors were encountered: