Skip to content

File dependencies from F# snippets #89

Closed

Description

@tpetricek

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.

Activity

  1. bartelink commented on Sep 12, 2014

    @bartelink
    Member

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

  2. tpetricek commented on Sep 12, 2014

    @tpetricek
    MemberAuthor

    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...)

  3. bartelink commented on Sep 12, 2014

    @bartelink
    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?)

  4. isaacabraham commented on Sep 13, 2014

    @isaacabraham
    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.

  5. forki commented on Sep 17, 2014

    @forki
    Member

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

  6. bartelink commented on Sep 28, 2014

    @bartelink
    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)

  7. forki commented on Oct 7, 2014

    @forki
    Member

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

  8. added a commit that references this issue on Oct 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions