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

Can't build ngx = "0.4.1" because wrong zlib url substitution #81

Open
azoyan opened this issue Jun 11, 2024 · 2 comments
Open

Can't build ngx = "0.4.1" because wrong zlib url substitution #81

azoyan opened this issue Jun 11, 2024 · 2 comments

Comments

@azoyan
Copy link

azoyan commented Jun 11, 2024

Describe the bug
can't build project with ngx = "0.4.1":

   Compiling nginx-sys v0.2.1
   Compiling app v0.1.0 (ssh://[email protected]/datsteam/wafng/wafng.git?branch=feature/multitenant#f0d78440)
error: failed to run custom build command for `nginx-sys v0.2.1`

Caused by:
  process didn't exit successfully: `/home/i/nginx-wafng-filter/target/debug/build/nginx-sys-8749b18e0178e362/build-script-build` (exit status: 1)
  --- stderr
  Error: Status(404, Response[status: 404, status_text: Not Found, url: https://www.zlib.net/zlib-1.3.tar.gz.asc])
warning: build failed, waiting for other jobs to finish...
@bavshin-f5
Copy link
Member

Zlib 1.3 was removed from the upstream website, making all download links invalid. See #59 and #61.

As documented in the project README, you can export ZLIB_VERSION environment variable to use a different version of Zlib. ZLIB_VERSION=1.3.1 should work.

@azoyan
Copy link
Author

azoyan commented Jun 13, 2024

Zlib 1.3 was removed from the upstream website, making all download links invalid. See #59 and #61.

As documented in the project README, you can export ZLIB_VERSION environment variable to use a different version of Zlib. ZLIB_VERSION=1.3.1 should work.

Okay, but by default I just add ngx = "0.4" in Cargo.toml and can't compile my project.

Also if I specify ZLIB_VERSION=1.3.1 compile does not success too, because remote website does not contain resource with .asc extension - zlib-1.3.tar.gz.asc.

Mabye you should fix substitution code and download .asc file from github instead offical website?

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

2 participants