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

Push fails on Windows if filepath has drive in it #93

Open
sunnycarter opened this issue Jul 6, 2023 · 1 comment
Open

Push fails on Windows if filepath has drive in it #93

sunnycarter opened this issue Jul 6, 2023 · 1 comment

Comments

@sunnycarter
Copy link
Contributor

blob is C:\Users\blah\test.json
The command failed with an unexpected error. Here is the traceback:
C does not exist.
Traceback (most recent call last):
File "C:\Users\sunnycarter.azure\cliextensions\aosm\oras\client.py", line 131, in push
return self.remote.push(*args, **kwargs)
File "C:\Users\sunnycarter.azure\cliextensions\aosm\oras\provider.py", line 647, in push
raise FileNotFoundError(f"{blob} does not exist.")

I believe this is because various places in the oras code split on ':' expecting this to be between the filepath and the media data. However, ':' is in the path on window too. I'll submit a PR to fix.

@sunnycarter
Copy link
Contributor Author

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

No branches or pull requests

1 participant