You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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
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:
paket.dependencies, paket.lock and paket.references
most discoverable to unitiated
stable names; easy to find
sorts beside packages.config, fine on windows
googleable
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
dependencies.paket and references.paket
sorts close to packages.config
stable names; easy to find
not bad googleability / discoverability
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)
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.
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.
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?
@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).
@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!)
Activity
Rename Config to DependenciesFile - relates to #59
Renaming things according to #59
Renaming things according to #59
Change the docs to new naming idea - references #59
Name dropping of References.list - references #59
Fixed parameter name - references #59
Fixed some names - references #59
ilkerde commentedon Sep 5, 2014
Great Idea. I wonder whether Paket adds references to my *.csproj file when I add a new package to my
references.listfile?forki commentedon Sep 5, 2014
If you run paket install then yes
bartelink commentedon Sep 5, 2014
@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.listbit 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:
references.listis replacing and/or working alongsidepackages.configprojectname.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:
paket.dependencies,paket.lockandpaket.referencespackages.config, fine on windowspaket.dependencies,paket.lockand<projectname>.csproj.paket(or ....references.paket)dependencies.paketandreferences.paketpackages.configdependenciesandreferencesBTW 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)
forki commentedon Sep 9, 2014
Paket.dependencies, Paket.lock and Paket.references sounds like a good alternative.
@agross what do you think? chaning one last time?
agross commentedon Sep 9, 2014
Go for it.
Alex
Alexander Groß
Tiny phone, tiny mail
On Tue, Sep 9, 2014 at 9:29 AM, Steffen Forkmann [email protected]
wrote:
ilkerde commentedon Sep 9, 2014
I like it. How about casing?
Paket.*orpaket.*? Casing is important on non-windows boxes. I opt for all lowercase.bartelink commentedon Sep 9, 2014
@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
forki commentedon Sep 9, 2014
I prefer Paket - with capital P
What do other say?
2014-09-09 10:21 GMT+02:00 ilkerde [email protected]:
forki commentedon Sep 9, 2014
Paket because the tool is called Paket with capital P
2014-09-09 10:23 GMT+02:00 Steffen Forkmann [email protected]:
bartelink commentedon Sep 9, 2014
Will it sort separately in many cases? is that good or bad (relative to
packages.configetc.?)agross commentedon Sep 9, 2014
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:
ilkerde commentedon Sep 9, 2014
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
gciand Linuxlsare 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.
bartelink commentedon Sep 9, 2014
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'sdiris the same (it happens to sort alpha insensitive on some[NTFS] sample partitions; when one applies/onit 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 statusdoes 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?
ilkerde commentedon Sep 9, 2014
@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.ignorecasesetting, 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).
bartelink commentedon Sep 9, 2014
@forki One inconsistency to note is that all the usage examples use
paket. Is it / should it bePaket? And is the binPaket.exeand/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!)