You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a derivation with a + in the name, nix log <drv> fetching from a substituter will result in a 404. Under the hood, + is the URL encoding for space (). Nix needs to translate the filename into a URL through URL encoding when it does a query.
Steps To Reproduce
Copy log of derivation with + in the name to a binary cache such as S3.
Use nix log /nix/store/asdf-foobar+2.drv
Observe failure:
error: build log of '/nix/store/asdf-foobar+2.drv' is not available
Obvious workaround is to URL encode the filename, but that fails without trying to query the remote cache:
error: getting status of '/nix/store/asdf-foobar%2B2.drv': No such file or directory
Expected behavior
It should be possible to do 'nix log' for a derivation with + in the name.
Describe the bug
If you have a derivation with a
). Nix needs to translate the filename into a URL through URL encoding when it does a query.
+
in the name,nix log <drv>
fetching from a substituter will result in a 404. Under the hood,+
is the URL encoding for space (Steps To Reproduce
+
in the name to a binary cache such as S3.nix log /nix/store/asdf-foobar+2.drv
Observe failure:
Obvious workaround is to URL encode the filename, but that fails without trying to query the remote cache:
Expected behavior
It should be possible to do 'nix log' for a derivation with
+
in the name.Metadata
Also tested:
Additional context
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: