-
Notifications
You must be signed in to change notification settings - Fork 525
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
Limitations using Github dependencies #2114
Comments
Can't reproduce this. Do you enclose the file name with quotes in
|
I am pretty sure I tried this, but I will try again. |
I have now retried and the download actually works (as it probably did last time as well). It is the restore step that fails because these quoted files gets into the paket.lock file without quotes. It is then unable to parse paket.lock. Paket failed with: |
Also, test the new behavior. References fsprojects#2114.
See #2127. |
Splendid! We will probably use this in our project in stead of full branch download then. However, I still think the length restriction imposed by the temporary unzip folder is worth considering. |
You could also try direct Git dependencies. |
Specifying the path could be nice, but still I think you need to get rid of the temporary sub-folder used during unzip as i basically add 50'ish chars to all files in the repos on its way out. |
Closing because original issue was fixed About path length is tracked by #1780 |
Description
We are using a github repository to collect some dependencies in our project. We have encountered two separate issues related to this:
paket downloads a zip-file, unzips this to a temporary folder and then copies to the target folder. Our particular use of github requires a particular folder structure and rather long file names. We run into a problem that the unzip fails due to some file names exceeding the maximum og 260 chars length. We have so far been able adjust the structure so that we get under the limit, but only just. And it seems awkward that this is caused by the unzip and the fact that it uses a temp folder which adds 50 chars to the name. Unless this can be solved so that unzip works without length limitation, would it be possible to use a short name for the temp-folder? Or why not just unzip into the destination folder without going via a temp?
As an alternative to the above approach we have tried to fetch single files. This works fine, except it does not at all support file names with spaces. Again, in this particular project, it is not trivial to change file names since file names are hard related to concepts inside the file. Would it be possible to optionally enclose file names in quotes so that files with space (and other chars) can be referenced?
Repro steps
Expected behavior
At least paket should not restrict this further by adding a long temp-folder name.
Actual behavior
See description.
Known workarounds
The text was updated successfully, but these errors were encountered: