Skip to content

build/serve doesn't respect HTTPS_PROXY env var #1075

Description

@vbauerster

Looks like trunk build is trying to download some dependency and fails shortly. It is expected as my ISP is blocking github.com, however I have exported HTTPS_PROXY environment variable as workaround. So it means that trunk build doesn't respect my HTTPS_PROXY and is trying to download dependency directly. If I'm correct, can you please fix this?

2026-06-04T14:06:09.323048Z  INFO 🚀 Starting trunk 0.21.14
2026-06-04T14:06:09.426148Z DEBUG Enforce version - actual: 0.21.14, required: *
2026-06-04T14:06:09.426172Z  INFO 📦 starting build
2026-06-04T14:06:09.426460Z DEBUG spawning asset pipelines
2026-06-04T14:06:09.497773Z DEBUG building basic-component
2026-06-04T14:06:09.497788Z DEBUG cargo args args=["build", "--target=wasm32-unknown-unknown", "--manifest-path", "/home/me/go/src/github.com/vbauerster/leptos/basic-component/Cargo.toml"]
2026-06-04T14:06:09.576978Z DEBUG fetching cargo artifacts
2026-06-04T14:06:09.657746Z DEBUG get_info: Getting tool app=WasmBindgen version=Some("0.2.122") offline=false client_options=HttpClientOptions { root_certificate: None, accept_invalid_certificates: false }
2026-06-04T14:06:09.657778Z DEBUG get_info:find_system: failed to detect system tool: cannot find binary path app=WasmBindgen version=Some("0.2.122") offline=false client_options=HttpClientOptions { root_certificate: None, accept_invalid_certificates: false } app=WasmBindgen
2026-06-04T14:06:09.658016Z  INFO get_info: downloading wasm-bindgen version="0.2.122" app=WasmBindgen version=Some("0.2.122") offline=false client_options=HttpClientOptions { root_certificate: None, accept_invalid_certificates: false }
2026-06-04T14:06:09.687331Z ERROR ❌ error
error from build pipeline

Caused by:
    0: HTML build pipeline failed (1 errors), showing first
    1: error from asset pipeline
    2: running wasm-bindgen
    3: failed downloading release archive
    4: error sending HTTP request
    5: error sending request for url (https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.122/wasm-bindgen-0.2.122-x86_64-unknown-linux-musl.tar.gz)
    6: client error (Connect)
    7: tcp connect error: Connection refused (os error 111)
    8: Connection refused (os error 111)
2026-06-04T14:06:09.687371Z ERROR error from build pipeline
2026-06-04T14:06:09.687375Z  INFO   1: HTML build pipeline failed (1 errors), showing first
2026-06-04T14:06:09.687377Z  INFO   2: error from asset pipeline
2026-06-04T14:06:09.687378Z  INFO   3: running wasm-bindgen
2026-06-04T14:06:09.687379Z  INFO   4: failed downloading release archive
2026-06-04T14:06:09.687380Z  INFO   5: error sending HTTP request
2026-06-04T14:06:09.687381Z  INFO   6: error sending request for url (https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.122/wasm-bindgen-0.2.122-x86_64-unknown-linux-musl.tar.gz)
2026-06-04T14:06:09.687383Z  INFO   7: client error (Connect)
2026-06-04T14:06:09.687384Z  INFO   8: tcp connect error: Connection refused (os error 111)
2026-06-04T14:06:09.687386Z  INFO   9: Connection refused (os error 111)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions