-
Notifications
You must be signed in to change notification settings - Fork 272
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
Allow running/compiling/testing unison from anywhere #339
Comments
There will be a single The |
How would one then create / share a library for use by other projects? |
@francisdb Initially, you could share a library with others just by publishing libraries as branches in your .unison directory in your github repo, someone could download from github and merge into their local codebase. This will naturally be easier once you're not limited to running In not too long, I think we'll have a syntax in the CLI (or even in a .u file) for referencing a library's branch on github. This would automatically add the branch to your codebase, and you could merge that branch into yours to gain the library functions it published. Eventually this process will be more polished, including probably some more fine-grained options. Uploading to a central unison repo might become a thing. The story for tests is a work-in-progress, but you would write them like any other unison function. |
Somehow storing .unison in a git repo is like storing one version control system into an other one How would you work with that example repo in case you want to add it to your own project? |
I suppose it is. Many IDEs maintain a local file history too! Then you have 3 revision control systems. 😄 You might consider old versions of functions that you keep around in your Scala or Haskell source repo (just in case you might want to use or reference them eventually) to be a 4th revision control system. (I do.) In any case, to work with that remote
then within the unison tool:
You're supposed to be able to do the Eventually the Unison tool will provide commands to do all of this for you, or to directly interact with the remote repo from the terminal or from the import statements in your .u file. |
@francisdb Although it's not yet merged to master, has this issue been resolved to your satisfaction? |
I still need to look into testing but will create a new ticket is needed. |
Creating this ticket as a discussion starting point to get a view on what the vision is regarding this:
Current state of things below (this is not what this ticket is about)
I create a git repo to store some unison files I am working on and want to compile/test it.
Symlinking the folder into unison-src does not work
haskell-fswatch/hfsnotify#87
Running the
unison
binary from that folder does not work as the jvm runtime is not relative to the current path:The new haskell runtime can start from a unison file but is not yet usable
Will make the
scratchFilePath
customizable with an argument which should help me forwardThe text was updated successfully, but these errors were encountered: