Skip to content

Open questions with the github references. #109

Closed

Description

@forki

I tried to use the github references feature in Paket to reference https://github.com/forki/FsUnit

This is what I did:

This seems to work with 0.2.0-alpha005

Open questions:

  1. we add a compile node like
  <Compile Include="..\..\paket-files\forki\FsUnit\master\FsUnit.fs" />

Can we do better and mark this as paket node? How?
2) Instead of a normal compile node we should consider to use a "linked" node. How can we do this?
3) Do we want to reference the file in paket-files folder? At the moment I have it in .gitignore.
4) How can we specify order?
5) How do we specify that we want it linked to a source folder?

@isaacabraham @theimowski @agross

Activity

  1. isaacabraham commented on Sep 16, 2014

    @isaacabraham
    Contributor
    1. Can we not just add an abritrary Packet=true attribute into the Compile node?

    2. By linked do you mean a linked file? The only effect that this has (AFAIK) is that it stops VS opening the same file linked in multiple projects twice. The node looks like this: -

      Path\In\This\Project\Script.fs

    This could be useful if we wanted to present the folder structure differently from how it's physically stored on disk.
    3. I think that's the way to go i.e. gitignore the entire paket-files folder - that's what happens with nuget packages folder, why should this be any different?
    4. I thought about this - it's a difficult one because of the well-known issues in F# regarding project folders - plus file order is obviously important in F#. I think we should start simple with this - currently the install routine just places the files in the project structure based on alphabetical order. It should not insert a new node if the file already exists, however (I'm not sure I added that code in) - this allows the user to manually amend file order if really necessary.
    5. Perhaps this should be the default?

    Some more questions:
    6. Should / can these files be marked as read-only?
    7. Should we add support for content files as well as compile files?

  2. forki commented on Sep 16, 2014

    @forki
    MemberAuthor
    1. nope.

    image

    but let me try a subnode.

    Yes! Subnode it is.

  3. forki commented on Sep 16, 2014

    @forki
    MemberAuthor

    Regarding 2) the markup is messed up

  4. isaacabraham commented on Sep 16, 2014

    @isaacabraham
    Contributor

    Boooo.

  5. forki commented on Sep 16, 2014

    @forki
    MemberAuthor
    1. yes, but not sure how.
  6. theimowski commented on Sep 16, 2014

    @theimowski
    Member

    +1 for support for Content files. It would be neat, if one could also specify an optional target directory for a file.
    github "twbs/bootstrap" "dist/css/bootstrap.css" "Web/Content/bootstrap.css"
    could be first step to convert from NuGet content-only packages

  7. isaacabraham commented on Sep 16, 2014

    @isaacabraham
    Contributor

    Hmmm, yes, for content files that would be a logical next step. For compile files, probably not IMHO.

  8. forki commented on Sep 16, 2014

    @forki
    MemberAuthor

    I think we should specify the target folder in the references files right?

  9. theimowski commented on Sep 16, 2014

    @theimowski
    Member

    yeah, that would make sense

  10. isaacabraham commented on Sep 16, 2014

    @isaacabraham
    Contributor

    Sorry re: markup. Links look something like this: -

    <Compile Include="folder/folder/path/file.fs">
      <Link>projectfolder/Tests.fs</Link>
    </Compile>
    

    Hopefully that works?

  11. forki commented on Sep 16, 2014

    @forki
    MemberAuthor

    yes I already implemented this. Thanks

    2014-09-16 17:26 GMT+02:00 Isaac Abraham [email protected]:

    Sorry re: markup. Links look something like this: -

    Tests.fs

    Hopefully that works?

    —
    Reply to this email directly or view it on GitHub
    #109 (comment).

  12. isaacabraham commented on Sep 16, 2014

    @isaacabraham
    Contributor

    What happens if you don't create a reference file - will the source files still get added?

  13. forki commented on Sep 16, 2014

    @forki
    MemberAuthor

    No that's the same with the nuget packages.
    On Sep 16, 2014 8:23 PM, "Isaac Abraham" [email protected] wrote:

    What happens if you don't create a reference file - will the source files
    still get added?

    —
    Reply to this email directly or view it on GitHub
    #109 (comment).

  14. bartelink commented on Sep 17, 2014

    @bartelink
    Member

    Please please please can all this stuff be solved once by treating single files same as source packages

    • F# in order insertion
    • tracking who 'owns' the insertion
    • install
    • uninstall
    • gitignoring the packages folder if you decide to unpack folders into a central folder

    I believe there should be room for third party services that do such wrapping and expose a NuGet front end over a download spec in the medium term. I really think reducing the number of package formats back to 1 would be a win. There will be plenty need and time to increase it back up again.

    Yes YAGNI Yes rule of three Yes I'm not doing the coding so I shouldn't be a chicken here but it's worth putting in the the seemingly redundant effort to avoid introducing lots of overlapping architectural concepts. (Have not looked at the code. Would not be surprised if the problems I'm imagining might not actually exist. Definitely understand that reasoning like this without the code can be a very bad idea. But have seen KISS lead to messes too :( )

  15. added a commit that references this issue on Oct 22, 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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions