-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Change nim's nimble files to make it installable #20179
Conversation
Thank you for pointing this out. I will revisit some decisions to figure
out how to proceed from this point. The issue is that all nimble projects
refer to nim using "nim", instead of "compiler".
…On Tue, 9 Aug 2022 at 07:34, metagn ***@***.***> wrote:
https://nimble.directory/pkg/compiler
—
Reply to this email directly, view it on GitHub
<#20179 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADFFHFXHJF76J4WA4ZXIRR3VYHNTPANCNFSM555DSFAQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
We can just set up an alias: https://github.com/nim-lang/packages#renaming-packages (so that |
That is what I am working on. |
Actually, I started working on the opposite - add alias nim -> compiler. But having it the way you suggested will make the code simpler and easier to understand on nimble side. |
You shouldn't need any changes in Nimble for this afaik. Aliases are already supported. |
Yeah. But I had to redo my nimble PR if we add an alias nim -> compiler because it threats "nim" in a special way. But following your suggestion we should be good to go if renaming |
Here is the corresponding change in packages repo: nim-lang/packages#2317 |
is the "compiler" only the compiler or the compiler and the standard library? if it's the former, "compiler" should be the main package name, if it's the latter, "nim" - in the future, it's quite possible that one would want to have a "nim" package that contains the compiler and std lib as dependencies (specially if the std lib is split up into multiple nimble packages) |
@arnetheduck compiler ATM has only the sources. I am adding the binaries as well + pretty much the content of the nimlang tar delivery. |
Hm, that's a good point. The current "compiler" package is just the compiler sources (and nimsuggest too for some reason?) The compiler itself also depends on the stdlib though so if we do have a separate stdlib package the compiler will also need to depend on it. |
presumably because it lives in the same directory? I imagine that one would want a separate nimble package for every (significant) tool. This would require some reorg of the repo, because afaik, nimble requires that each "project" is in its own folder, right? I guess this is tied to the fact that nimsuggest was developed as a |
It is due to this line: https://github.com/nim-lang/Nim/blob/devel/compiler.nimble#L7 There is also |
Hey @Araq , can you take a look? Based on our previous conversion I believe that you don't want to structure the repo in a way to make it "nimble compatible" so splitting nim repo into separate components (e. g. stdlib, compiler, nimsuggest, etc) is no go. If that is the case, then it seems to me if we want to have separate nimble packages(it is not clear to me whether there is such a need) then at some point we could implement support for multiple packages in a single repo. |
We already support that. See https://github.com/nim-lang/nimble#package-urls |
- needs nim-lang#20168 to make the stuff working I went for this minimal solution because it seems like `compiler.nimble` and `nimsuggest.nimble` are not in use
* Rename compiler to nim - see nim-lang/nimble#1017 and nim-lang/Nim#20179 * Better description of the Nim package Co-authored-by: zah <zahary@gmail.com>
Thanks for your hard work on this PR! Hint: mm: orc; threads: on; opt: speed; options: -d:release |
Hey @narimiran , can you backport this and #21314 ? |
- needs nim-lang#20168 to make the stuff working I went for this minimal solution because it seems like `compiler.nimble` and `nimsuggest.nimble` are not in use Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
Both are now backported. |
@yyoncho Hi, this PR seems to break the version-1-6 CI. Could you have a look at when you have some free time?
|
@ringabout I am back from a vacation, I will take a look if it is still relevant. |
Nope, it has been fixed. |
- needs nim-lang#20168 to make the stuff working I went for this minimal solution because it seems like `compiler.nimble` and `nimsuggest.nimble` are not in use Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
I went for this minimal solution because it seems like
compiler.nimble
andnimsuggest.nimble
are not in use