-
Notifications
You must be signed in to change notification settings - Fork 131
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
spago fails to add dependencies inside directories managed by Dropbox in Windows #894
Comments
We use temporary directories to clone things into (so that they are ephemeral if things go wrong and we have to abort things mid-flight), and that seems to be quite fiddly on Windows, especially if the destination is on a different file system (i.e. if your temp folder is in So I am not sure I have a good suggestion here other than discouraging this setup? |
I have the same problem. In a new directory after
The folder is not synced with any service at least to my knowledge (work laptop). I cleared the global cache which is in my user directory, part of which is synced. I also tried Versions are
There are no hidden folders in |
I'm getting exactly the same problem, but in my case it's on FreeBSD operating system. I'm quite sure there isn't anything getting in the way such as DropBox. In a newly created project the output of an attempt to build is as follows:
and the versions are:
A similar thing happens with an old project, just longer because it does the same thing for every dependency. I asked a while ago at discourse, where there was a similar problem. Someone did find the location in the code but beyond checking that is it (ie it tries twice for each package etc) I can't make much of that. Thanks in advance. |
I had the same issue under Windows. It could be related to current folder name. Although there were no blanks in my path. I moved the current folder to top level (E:\repo), ran |
Same issue on FreeBSD without dopbox. On purescript-book exercises: purescript-contrib/purescript-book#443 |
Would anyone like to try |
This issue no longer occurs with |
Thanks @bensnowball, this is great 🙂 I think we can close this as solved then |
I'm running WIndows 11 with Git for Windows and spago 0.20.9 installed via npm. When I create a project via
spago init
inside a subdirectory of my Dropbox directory and then runspago build
, I get:However, if I create a project somewhere outside of my Dropbox directory, it builds and runs as expected.
My suspicion is that Dropbox is (temporarily) putting some hidden file that git doesn't like in the directory that spago creates to clone the dependency repository. I cannot confirm, but a potential fix is to allow git to create the directory, i.e., by calling
git clone <repo> <dir>
for nonexistent<dir>
instead of creating the directory first,cd
ing to it, and callinggit clone <repo> .
.The text was updated successfully, but these errors were encountered: