-
Notifications
You must be signed in to change notification settings - Fork 25
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
"Adding [email protected] package to registry via mason publish" #74
Conversation
Before merging, please see my question in #62 . Do I need to manually create the tag release even if I ran |
In the meantime, I think the best thing would be to just create the tag manually. We are also looking in to the cause of these CI failures and will get back to you when we know more! |
ok it seems we've unlocked the next level of of the
I guess the second one is just the The first one is a bit more interesting. I think of my library as a a single module, but I also want to structure that in multiple files for better readability/modularity. The main file (in this case module ForwardModeAD {
public use Math;
public use dualtype;
public use arithmetic;
public use trigonometric;
public use transcendental;
public use hyperbolic;
public use differentiation;
} The The main file only imports and re-exports all "sub-modules". It seems Mason does not like it anymore after 2.0? Why is that? (feedback on how to better structure my library is of course also welcome, if my setup has some drawbacks. I do find having a lot of code in a single file a bit unergonomic though and prefer to split in multiple files. Especially for bigger libraries (although mine arguably is not there yet) being able to structure it in a modular way sounds pretty important to me). |
For the second one: I checked the documentation for Manifest file (https://chapel-lang.org/docs/main/tools/mason/guide/manifestfile.html) and as far as I can tell, the The toml file commited here (0.2.0.toml) does have the What is the idea of that check? |
Fixed the What about the other problem
? I see the same issue in #73 , so it seems a common pattern (technically 2/3 of the packages trying to support Chapel 2.0 have this problem :P ), what is the motivation behind that restriction? Can it be lifted? |
ok, I think I've found something. My structure is flawn, as I should use a |
I see someone restarted the workflow of this a few minutes ago. I need to still fix the structure of my package, doing it now :) Besides, wouldn't I need to wait for the next release anyway? Or does the registry use Chapel nightly build? |
That's my bad, I forgot that the package still needed updating. No need to rush and fix it right now! If I'm reading things correctly then the CI job should be pulling from |
I see, interesting idea, why not just pulling the latest stable docker image? Is it because the registry is still "maturing" and it's more valuable to have latest main with potential fixes (like in this case)? |
I believe that's mainly it, yes. |
Ah, now I remember why I hadn't update the structure yet, I needed to ask something about modules includes and visibiliy, but I'll ask that on discourse, since it's probably something useful to other chapel library developers too edit: funnily enough I had asked this question 1 year ago (for curiosity, before having the issue) https://chapel.discourse.group/t/importing-files-from-subfolders/17064, that's what I call thinking ahead of time xD |
posted a follow-up comment on discourse for better visibility: https://chapel.discourse.group/t/importing-files-from-subfolders/17064/8 here is the PR shuffling files around if someone wants to have a look: lucaferranti/ForwardModeAD#16 feedback on what is an idiomatic structure welcome (except for your library is small, just put everything in one file :P) The PR should in the end be fairly simple to navigate:
should hence be enough to look at the first 3 lines of each file, the rest is just some boring maths :) |
@benharsh CI green and sunny 🌞 |
Thanks for sticking with it while we worked through these CI issues! |
new release of ForwardModeAD to support chapel 2.0