Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow my users to use contracts shared on GitHub #1962

Open
GuillaumeDesforges opened this issue Jun 15, 2024 · 2 comments
Open

Allow my users to use contracts shared on GitHub #1962

GuillaumeDesforges opened this issue Jun 15, 2024 · 2 comments

Comments

@GuillaumeDesforges
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I would like users of my tool to use contracts I've written and share in a git repository on GitHub.

Describe the solution you'd like
I'm fine with builtins to fetch (like Nix)

let {Foo} = import (std.fetch "https://someurl.com")

or asking them to run a command.

Describe alternatives you've considered
I'm about to write my own bash script that will copy from remote to a .nickel/ folder, so user can then import ".nickel/foo.ncl"

@jneem
Copy link
Member

jneem commented Jun 15, 2024

I think this falls under package management (#1585). I've been working on a prototype (#1903), but there are still a bunch of design questions. I'm writing a summary, and I'll post it as a discussion when it's done.

If your users are ok with using a nix shell, the easiest solution that works right now is to use the nix shell to put the git repo in the nix store, and then set NICKEL_IMPORT_PATH

@GuillaumeDesforges
Copy link
Contributor Author

GuillaumeDesforges commented Jun 16, 2024

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants