Skip to content

Change the file names to new naming idea #59

Closed

Description

@forki

As discussed with @agross we want:

Dependencies
Dependencies.lock
References.list

Text snippet:

The definitions in your Dependencies file are taken to compute the list of all depedencies 
which is written to Dependencies.lock. 
Ýou may have a References.list file next to your VS projects to have Paket 
automatically add references for the package IDs noted in that file.

Activity

  1. ilkerde commented on Sep 5, 2014

    @ilkerde

    Great Idea. I wonder whether Paket adds references to my *.csproj file when I add a new package to my references.list file?

  2. forki commented on Sep 5, 2014

    @forki
    MemberAuthor

    If you run paket install then yes

  3. bartelink commented on Sep 5, 2014

    @bartelink
    Member

    @agross @forki What's the basis for having an extension on a user-maintained file (References.list) and none on the other? (OK, maybe the .list bit is a bit rethorical re #56 :P)

    I like the unambiguous core names - prevents any confusion and/or need to document at top level.

    I'd consider the following in the naming decision:

    • Shouldnt mix files with extensions with ones that dont have ones
    • As mentioned in Fixed lock file name and rewording #56 its very unidiomatic on Windows (and I think Windows is a significant platofm for Paket)
    • references.list is replacing and/or working alongside packages.config
    • neither name is particularly googleable in any way
    • neither refers to the name of a nonmainstream build tool either inside or outside the file
    • where files sort alphabetically can help a lot (esp if its close to what it's replacing) and/or working with (i.e. if it was called projectname.csproj.references, the intent of being an adjunct to that file would be very clear vs right now if you have a .csproj, a .proj and a .vbproj in the same dir things can be are confusing (though maybe it might cause some problems?))

    From the above, I'd propose, in order of my prefence:

    1. paket.dependencies, paket.lock and paket.references
      • most discoverable to unitiated
      • stable names; easy to find
      • sorts beside packages.config, fine on windows
      • googleable
    2. paket.dependencies, paket.lock and <projectname>.csproj.paket (or ....references.paket)
      • discoverable
        • less googleable
        • no magic in relationship to project
        • no ambiguity if there is a .csproj, a .vbproj an 2 2x .proj files in the same dir
    3. dependencies.paket and references.paket
      • sorts close to packages.config
      • stable names; easy to find
      • not bad googleability / discoverability
    4. dependencies and references
      • wierd on windows
      • not googleable
      • not discoverable
      • but more consistent than the proposal

    BTW I actually used the tool IRL for the first time today and it's absolutely fantastic (but I'd still argue about naming all day either way)

  4. forki commented on Sep 9, 2014

    @forki
    MemberAuthor

    Paket.dependencies, Paket.lock and Paket.references sounds like a good alternative.

    @agross what do you think? chaning one last time?

  5. agross commented on Sep 9, 2014

    @agross
    Contributor

    Go for it.

    Alex

    Alexander Groß
    Tiny phone, tiny mail

    On Tue, Sep 9, 2014 at 9:29 AM, Steffen Forkmann [email protected]
    wrote:

    Paket.dependencies, Paket.lock and Paket.references sounds like a good alternative.

    @agross what do you think? chaning one last time?

    Reply to this email directly or view it on GitHub:
    #59 (comment)

  6. ilkerde commented on Sep 9, 2014

    @ilkerde

    I like it. How about casing? Paket.* or paket.*? Casing is important on non-windows boxes. I opt for all lowercase.

  7. bartelink commented on Sep 9, 2014

    @bartelink
    Member

    @agross @forki Wahoo! Who said naming things is hard :P

    And I can rest completely when the project-name suffixing (<projectname>.<xx>proj.paket) happens eventually organically :P

    @ilkerde +1 for lowercase

  8. forki commented on Sep 9, 2014

    @forki
    MemberAuthor

    I prefer Paket - with capital P
    What do other say?

    2014-09-09 10:21 GMT+02:00 ilkerde [email protected]:

    I like it. How about casing? Paket.* or paket.*? Casing is important on
    non-windows boxes.

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

  9. forki commented on Sep 9, 2014

    @forki
    MemberAuthor

    Paket because the tool is called Paket with capital P

    2014-09-09 10:23 GMT+02:00 Steffen Forkmann [email protected]:

    I prefer Paket - with capital P
    What do other say?

    2014-09-09 10:21 GMT+02:00 ilkerde [email protected]:

    I like it. How about casing? Paket.* or paket.*? Casing is important on
    non-windows boxes.

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

  10. bartelink commented on Sep 9, 2014

    @bartelink
    Member

    Will it sort separately in many cases? is that good or bad (relative to packages.config etc.?)

  11. agross commented on Sep 9, 2014

    @agross
    Contributor

    I like Paket with capital P because it's correct German spelling ;-)

    Rake for example looks for Rakefile, Rakefile.rb, rakefile, rakefile.rb.

    Alex

    Alexander Groß
    Tiny phone, tiny mail

    On Tue, Sep 9, 2014 at 10:24 AM, bartelink [email protected]
    wrote:

    Will it sort separately in many cases? is that good or bad (relative to packages.config etc.?)

    Reply to this email directly or view it on GitHub:
    #59 (comment)

  12. ilkerde commented on Sep 9, 2014

    @ilkerde

    Let's agree to Paket.* with a capital P for creation (so that it becomes standard). Maybe optionally fallback on reading filenames case-insensitive? (This would be extra effort for non-windows envs).

    @bartelink Sorting is an interesting question. Both Windows gci and Linux ls are sorting (listing) case-insensitive per default. Some special tools (mc, Total Commander...) might have other sorting conventions. I'd say this aspect can be safely disregarded for the naming decision.

    My casing question was mainly to raise awareness for non-windows environments.

  13. bartelink commented on Sep 9, 2014

    @bartelink
    Member

    Sorry, had to go AFK at what looks like a very bad time considering the bikesheddery aspect of what I'm about to say...

    @ilkerde Thanks for that - I had that somewhere paged out :)

    For avoidance of doubt cmd's dir is the same (it happens to sort alpha insensitive on some[NTFS] sample partitions; when one applies /on it continues to work case.insensitive.

    @agross @forki Regarding supporting both casings...

    It may be worth considering refusing and/or warning if the file is not correctly cased to avoid a surprise when someone has to do a x-plat build if only one is going to be honored.

    In many version control systems, a rename that only changes case cannot be represented in the source control system (so you end up with intermediate renamed). NTFS honors a case-changing rename. I'd attach a lot of significance to whether git allows a commit of an only case-changing rename (I've yet to become a git nerd but on my Windows box with a recent git which arrived via chocolatey, GHFW and VS, git status does not show up as a modification)

    Hence I think the prior art of the nuget files being lower case by default is not to be sniffed at from the point of view of keeping the code short. (It's what informed my earlier +1 for all lower).

    Though I guess, even if the default is lower, it's probably a worthwhile up-for-grabs to make it support both?

  14. ilkerde commented on Sep 9, 2014

    @ilkerde

    @bartelink As per 325694e we've already settled for Paket.* with a capital P.

    With regards to your described casing concerns, the problem is not git but truly the windows heritage of supporting case-insensitivity. Your git behavior relies on core.ignorecase setting, which is true on windows installs and false on all others.

    So (sadly) again a windows annoyance to be aware of. Nonetheless, @forki went for a big P and nothing else. I'm fine with it as long as names are good (and they are indeed).

  15. bartelink commented on Sep 9, 2014

    @bartelink
    Member

    @forki One inconsistency to note is that all the usage examples use paket. Is it / should it be Paket ? And is the bin Paket.exe and/or should bins on *ix have a capital P ?

    For me this is another reason to lowercase (hold off on doing it till I have the docs PR tho plz!)

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