-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add warning message when cloning the HEAD. #809
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this but it's hard to know when this message will be shown. For example, it would be annoying to see it when the user explicitly asks for #head
.
The warning message is displayed only if the repo hasn't tags when a version is needed. I made some tests: zip package hasn't tags:
karax package has tags:
|
I can maybe improve the message. |
I'll suggest that message should always be shown even if the user explicitly asks for #head. It should further explain the real problem with #head - if the user installs Nimble will assume that Maybe we should always grumble that a package version |
@genotrance I totally agree with you to add a warning messages when a user use |
That's not quite the case I don't think. The distinction here is with how Nim and Nimble handle dependencies. The Nim compiler does not read .nimble files to check versions but Nimble should and does AFAIK. |
Sorry, but I don't understand your answer about the relationship between Nim and Nimble to manage dependencies (I don't very smart). Yes Nim doesn't care about .nimble files but we talk about Nimble when it uses to install, build or run a project. Personally, I rarely run Nim to build my project but rather |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See remarks, but seems fine otherwise.
src/nimblepkg/download.nim
Outdated
else: | ||
display("Warning:", "No corresponding tag found with required version.", Warning, | ||
priority = HighPriority) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the message here the same as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot this one :)
Bump. Can you merge it please ? |
Can you make my suggested changes? :) |
Co-authored-by: Dominik Picheta <[email protected]>
Sorry, it's good now. |
Great. Thanks. |
In answer of this issue, it is important to indicate that the developer use a package without git release tag.
This message, I hope, can also generate more serious in development process and improve the quality. In the common world, a release version has a git tag.