Error when downloading sass
As soon as I add a scss link to my index.html, trunk build or trunk serve fails with :
error from HTML pipeline
Caused by:
0: error from asset pipeline
1: failed downloading release archive
2: error sending HTTP request
3: error sending request for url (https://github.com/sass/dart-sass/releases/download/1.37.5/dart-sass-1.37.5-linux-x64.tar.gz): error trying to connect: dns error: No connections available
4: error trying to connect: dns error: No connections available
5: dns error: No connections available
6: No connections available
I am wondering what might be happening. I'm on arch linux, with firejail and apparmor, and I wonder if somehow the dns is blocked somewhere...
I found a workaround for my case actually: removing "trust-dns" from reqwest's features in trunk's Cargo.toml makes the request complete, and the rest seems to work fine. So the issue seems to be related to reqwest and/or trust-dns.
Also, I suggest using the installed sass if it is available.
Any movement on this? I have this issue now as a new trunk user and it's breaking my forward momentum. I would prefer to not have to copy the repo to fix this.
Hello all! I am sorry to hear that folks have been blocked by this issue. As far as I can tell, this appears to be an issue with configuration on your host machine. As suggested, it must be an issue with DNS being blocked. As much diagnostics info as you can muster will help us to resolve this issue for you and others in a more robust / automated way in the code.
The main thing I can suggest as an immediate workaround is simply to download the version of sass that you need manually. If it is already present on your machine, and matches the version which you require, then Trunk will not attempt to download anything.
Docs The reference Trunk.toml in the repo has an example of how to specify the version of a tool: https://github.com/thedodd/trunk/blob/master/Trunk.toml#L33-L35
As you can see in the code here: https://github.com/thedodd/trunk/blob/master/src/tools.rs#L241-L242, Trunk will not attempt to install a new tools as long as it detects that the tool already exists on your PATH and has the correct version.
Summary: install the sass tool manually, and ensure it is the correct version. As long as you do that, Trunk will not attempt to download the tool for you.
For what it's worth I just dealt with this after we switched our web assembly project to use trunk instead of parcel. I haven't verified any of this so take it all with a grain of salt, but maybe it can help point to the issue.
For the most part we had no issues but with our windows build container if we ran trunk build --release via npm it would encounter this exact dns issue. Running trunk build --release directly, rather than via npm resolved the issue for us at least for now.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.