-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[bug] undeclared hyper-tls dependency of tauri causes failure with offline builds #12448
Comments
That's actually crazy timing, i just opened a PR yesterday to address this (though i didn't think about offline builds) #12445
add |
Crazy coincidence indeed! Awesome that this is already being addressed.
Oh I should have clarified that I did try that, but it still pulled in |
It does remove the To reproduce you need to build in offline mode:
|
ahh, that could be because of the workspace inheritance. The cli may not detect the features correctly here. Does this still happen if you do |
You're right, that seems to solve the issue! :D |
Describe the bug
I recently tried to package an application that was build with tauri, but in my build sandbox I encountered the following error:
For context, I pre-download all dependencies using
cargo vendor
and later build without network access, but for some reason that is unknown to me,tauri build
seems to execute a cargo build that requires more than what I have in my lock file. Specifically, it will try to fetchhyper-tls
which then fails. The obvious and simplest solution for me was to addhyper-tls
to the project dependencies (either directly or by enabling tauri'snative-tls
feature), even though the project doesn't actually depend on it. This just makes sure the dependency is available in the vendored directory sotauri build
can succeed.I also cannot figure out how to remove this dependency, say if I wanted to use
rustls
instead hyper-tls which seems to pull in openssl. Unfortunately, I don't know enough about tauri to find the root cause for this. It does however seem like something that shouldn't be happening.Reproduction
Expected behavior
All dependencies should be declared.
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: