-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use parcom with submodules #1
Comments
(Oh, and feel free to tell me that I should just give up and embrace Smackage.) |
I have ended up making a shallow wrapper repository around
I have been using this manual dependency resolution scheme for a while now in the JonPRL proof assistant and it works pretty well. I think Smackage is a nice tool, but it would be nice if SML libraries would standardize on using path anchors, and then at the application level, the path anchor can be bound to a Smackage location. |
Sorry for the extremely long time it took me to look at this, I haven't been using github much recently. A separate .cm is definitely the right way to go, and I completely understand reluctance to force people to use smackage, it's not exactly opam-level usable at the moment. I haven't used path anchors before, if you could point me to some resources I could see if it makes sense to incorporate it into the mainline parcom (since it doesn't look like a lot of work). Cheers, |
@Finrod Great, thanks for the response! Tonight hopefully I'll give you some examples on how to use path anchors. I'm using them pretty heavily in the JonPRL project for my dependencies, and it seems to be working pretty well. |
@Finrod Sorry I took so long to get around to this... The documentation of using path anchors is in the CM manual, section 5.1.4 (page 16). You can see an example of them in action in my library sml-telescopes, where I have two Now, you only really need to require a user to have a library installed in case you intend to export things that are of types defined in your dependency, and you want these things to be interoperable with other uses of that dependency in the user's codebase. However, if (for instance) |
I just remembered that |
This is a "question", not a bug:
I'm currently using
parcom
in JonPRL, which I compile using CM. Now, in order to getparcom
installed, I had to use Smackage,parcom
uses Smackage in order to get ahold ofcmlib
.My preference would be to use
parcom
via a git submodule, in order to make the installation process as simple as possible (I don't want folks to have to install Smackage to get hacking); in this case, I would somehow directparcom
to the correct location ofcmlib
by hand. My thinking is that the simplest thing I can do is just write my own.cm
file forparcom
and use that in my parent repo rather thanparcom.cm
.Is this workflow reasonable, or is there a better way that I should do this?
Thanks very much,
Jon Sterling
The text was updated successfully, but these errors were encountered: