-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
package manager can't download from bitbucket - Content-Type application/x-tar-gz #21314
Comments
This nonstandard mimetype should be added to the list of |
Thanks! I'll PR a patch which adds that line. |
Closes ziglang#21314 This allows the package manger to download tar.gz bitbucket urls.
Closes ziglang#21314 This allows the package manger to download tar.gz bitbucket urls.
I think this patch would solve the diagnostic missing trailing '/' issue. But I'm not sure if there should be a runtime check that diff --git a/src/Package/Fetch.zig b/src/Package/Fetch.zig
index 2540cf9922..4272a71733 100644
--- a/src/Package/Fetch.zig
+++ b/src/Package/Fetch.zig
@@ -770,7 +770,7 @@ fn srcLoc(
const eb = &f.error_bundle;
const token_starts = ast.tokens.items(.start);
const start_loc = ast.tokenLocation(0, tok);
- const src_path = try eb.printString("{}" ++ Manifest.basename, .{f.parent_package_root});
+ const src_path = try eb.printString("{}" ++ std.fs.path.sep_str ++ Manifest.basename, .{f.parent_package_root});
const msg_off = 0;
return eb.addSourceLocation(.{
.src_path = src_path, |
Closes ziglang#21314 This allows the package manger to download tar.gz bitbucket urls.
Closes ziglang#21314 This allows the package manger to download tar.gz bitbucket urls.
Zig Version
0.14.0-dev.1398+c34cfe486
Steps to Reproduce and Observed Behavior
Given a bitbucket url such as the following (which was found here).
This error is shown.
This is only an issue for the .tar.gz url and not for the .zip url.
This diagnostic message is also missing a final '/'. I have omitted the beginning of the path.
.../Code/zig/btreemapbuild.zig.zon:8:20:
But should be.
.../Code/zig/btreemap/build.zig.zon:8:20:
Expected Behavior
The package manager should be able to download the package. And the diagnostic path should include a final '/'.
The text was updated successfully, but these errors were encountered: