-
Notifications
You must be signed in to change notification settings - Fork 72
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
Paket requires extra privileges in Windows #578
Comments
Seems it's a known issue with paket: fsprojects/Paket#3767 (comment) Turned on developer mode in Windows and it works. Do you run with elevated privileges or with Windows in developer mode? |
Thanks for the bug report and providing a workaround. As for me, I'm using Linux and never got this problem. We're thinking of dropping paket anyway, now that NuGet has central-package-management capabilities (and also because I've ran into other paket bugs myself). |
That would definitely simplify setup for me. (I mostly just use the IDE, Rider in my case, and let that handle restores, build, and testing. It's always a hurdle to start to contribute to OSS projects where that doesn't work and I have to use build scripts.) |
What are the current thoughts on Paket vs. Nuget? If we can get the build update to the current .NET SDK then we could try changing it to use directory.packages.props instead? |
I've been trying to get everything [building with .NET 6](#606) and the related tooling, and have been getting CI build failures in the macOS builds, with errors that look like those described at fsprojects/Paket#3767 It looks like changing Paket to use 'packages' storage instead of 'symlink' avoids that issue, by putting the restored nuget packages directly into the local packages folder instead of symlinking them. (I don't know much about this Paket feature - the docs suggest its for reducing disk usage by avoid duplicates, which might not really be an issue for the builds?) On a related note, we also have this issue - #578 - where you have to either run the build as admin on windows or set some extra OS options otherwise the package restore will fail. I think this change would avoid that as well. Note: Changing the paket storage to 'none' helped with package restore issue, but caused the 'docs' build to break for me because the Fornax tool couldn't find the libraries, whereas it works when set to 'packages'
Sorry, I have long since moved on and can not prioritize this now. |
Ok, then I hope you don't mind that I close this, and if you find the issue again, please reopen! |
I am trying to set up a FSharpLint dev environment locally. From a clean repo, I first did
dotnet tool restore
, and thendotnet fake build
, but the latter fails:Do I have to run the build command with administrative privileges? I am hesitant to do that. It should not be needed.
The text was updated successfully, but these errors were encountered: