Skip to content
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

File dependencies from F# snippets #89

Closed
tpetricek opened this issue Sep 12, 2014 · 7 comments
Closed

File dependencies from F# snippets #89

tpetricek opened this issue Sep 12, 2014 · 7 comments

Comments

@tpetricek
Copy link
Member

I chatted about Paket with Phil Trelford and we agreed that Paket absolutely needs to be able to specify file dependencies from www.fssnip.net (because Phil is to cool to publish his frameworks on GitHub).

What would it take to be able to do something like:

source "http://fssnip.net/api/v1"
fssnip "5o" "~> 3"

... in order to get a nice new file with throttling agent from: http://fssnip.net/raw/5o/4. The last number is version of the snippet, "5o" is not-quite-sexy ID of the snippet, which we could, in principle, make an optional parameter or something on fssnip.

@bartelink
Copy link
Member

@tpetricek Overlaps with #9 (Which is not to say anything other than that there is work underway on overlapping stuff)

@tpetricek
Copy link
Member Author

Yep, I've seen #9. The question is, what are the things that need to be added to www.fssnip.net to make this work? (Aside from nicer IDs for snippets, which would make the references less incomprehensible...)

@bartelink
Copy link
Member

@tpetricek My reading between lines inferencing guesser says it's just deriving a HTTP Url via a DSL. IOW all this req would add is a new front end fun or two to new up the Uri; it's just a straight file download.

Watch out for that thundering herd until the caching is impl'd though :D

Your other choice is to emit a .nupkg if there's value to be had there (but Paket and/or the fssnip end would need to provide a minimal OData endpoint for whatever comms happen to see if there is an updated version).

I've been throwing oars in about the github download generating a faux .nupkg (mainly to keep the installation uniform - maybe that might mesh with something that makes sense for fssnip?)

@isaacabraham
Copy link
Contributor

It won't be hard from what I've done thus far in the other issue - basically just some code that will take in the details of the file e.g. path http and optional commit details etc. and it should return back the string content of the file. I'll be submitting a PR for the GitHub implementation later today and we can go from there.

@forki
Copy link
Member

forki commented Sep 17, 2014

@tpetricek how can we discover all versions of the same snippet?

@bartelink
Copy link
Member

#154 ties in a syntax for handling fssnips consistent with other files including respecting the declared nuget dependencies in fssnips. Also potentially overlaps with #65 in that fssnip could feed out a nupkg, esp if it could share a fssnip snippet re packing it (which Paket could use internally to secrete a paket into the cache for a paket which is not a raw NuGet package)

@forki
Copy link
Member

forki commented Oct 7, 2014

closing this. we will not support fsnip directly. maybe via http references

@forki forki closed this as completed Oct 7, 2014
forki pushed a commit that referenced this issue Oct 13, 2014
Fixing comments in the example lib so it actually works with Fsharp.Form...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants