-
Notifications
You must be signed in to change notification settings - Fork 186
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
using hyperv provider, can not read files in /packages share #41
Comments
I changed the |
Have similar problem. Output for the diagnostic commands is a bit different:
dir : The network path was not found.
At C:\windows\temp\winrm-elevated-shell-d086146b-7d47-4016-b515-f4eba2d99125.ps
1:1 char:1
+ dir C:/packages/
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (C:\packages\:String) [Get-ChildItem]
, IOException
+ FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChil
dItemCommand |
The workaround yes. But for my overall problem it does not help. Choco Test environment is an outdated platform. Need to create another issue or find the relevant for modern tls connections. I cannot download from Amazon cdn. When I install a modern browser like Firefox in test environment then I can use it to download. But internet-explorer or powershell uses old settings which throw errors. |
It uses Windows Server 2012 R2 deliberately and for many good reasons.
The test environment is intended to be used for testing Chocolatey packages. |
I tested package failures reported by choco moderators. |
Again, I want to correct you here. This isn't old-fashioned. It's a fully supported server operating system. I know it's semantics, but it's important. If the package works and the reason it doesn't work is only due to Windows Server 2012 R2, then you can request a Verifier exemption. |
By using the hyperv provider for vagrant, I am unable to read files in the /packages share. I can see and list (dir) the files, but I can not read the files.
Setup
Repo
vagrant winrm -e -s powershell -c "copy c:/packages/*.* c:/"
Result
Expected
No errors and the Readme.md file to be copied.
Notes
Listing files succeeds like this:
All attempts to read the files (like readme.md) usign different methods results in similar errors. For example, editing the
Vagrantfile
to have a provision commandtype c:/packages/ReadMe.md
results in the error:Manipulating the permissions on the packages folder and files on the host did not resolve the problems. I added
full
access toEveryone
and yet the files can be seen, but can not be read.In ba95e7d the hyperv provider and box was added. Was the read of local packages in the /packages share tested? If so, are there setup/permission/file requirements to get it to work?
The text was updated successfully, but these errors were encountered: