Skip to content
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

Fix file URLs with digest #1219

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

pnasrat
Copy link
Contributor

@pnasrat pnasrat commented Dec 1, 2022

Fixes #1217

Signed-off-by: Pris Nasrat pnasrat@gmail.com

@pnasrat
Copy link
Contributor Author

pnasrat commented Dec 1, 2022

Ok that Windows test looks relevant, but possibly a issue with go on windows eg golang/go#51442

I'll see if I can figure out.

  testing.go:1097: TempDir RemoveAll cleanup: remove C:\users\runner\Temp\TestDownloadLocalwith_digest942769228\002\empty.iso: Sharing violation.

@AkihiroSuda
Copy link
Member

Thanks, windows test can be skipped

@pnasrat pnasrat force-pushed the fix-local-file-download branch 2 times, most recently from eca8535 to 995326e Compare January 9, 2023 16:26
@@ -80,3 +82,37 @@ func TestDownloadRemote(t *testing.T) {
assert.Equal(t, StatusUsedCache, r.Status)
})
}

func TestDownloadLocal(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if runtime.GOOS == "windows" {
  // FIXME: `TempDir RemoveAll cleanup: remove C:\users\runner\Temp\TestDownloadLocalwithout_digest2738386858\002\test-file: Sharing violation.`
  t.Skip("Skipping on windows")
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I took a quick look, on how the windows test run via wine and will try figure how to fix/workaround. Sorry for the delay on this PR my end - the end of the year became very busy for me

Fixes lima-vm#1217

Test skipped on windows for now.

Signed-off-by: Pris Nasrat <pnasrat@gmail.com>
@pnasrat pnasrat force-pushed the fix-local-file-download branch from 995326e to 0e0240e Compare January 10, 2023 02:36
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda added this to the v0.15 (tentative) milestone Jan 10, 2023
@AkihiroSuda AkihiroSuda merged commit 40a617c into lima-vm:master Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using file:/// URLs with digest fails due at digest check
2 participants