-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
jaspr build does not work inside nix #282
Comments
Issue seems to be with |
I have never used nix, nor do I even know what it is. So sadly its out of my knowledge to help you with this. |
This error:
looks like its coming from https://pub.dev/packages/cli_completion |
The CLI completion error doesn't prevent building, I added verbose logging and got a socket error. For whatever reason, jaspr is fetching from |
The cli is checking for updates everytime a command is run. But this is try/catched so any exception shouldn't crash the cli. The build command itself is effectively only doing Can you post the full error you get from running in verbose mode? |
|
Weird this is coming from the builder. Can you try running 'dart run build_runner build' instead of 'jaspr build'? |
|
Run with --delete-conflicting-outputs |
Yeah, that worked. |
@RossComputerGuy Can I close this? Are you still having an error with the latest version? |
Yes, it is still an issue. Using build_runner doesn't produce any output files. |
Then I need more info. Please provide (from inside your pipeline)
|
Here's the output of both those commands.
|
|
A side note regarding the |
@AdamJel Agreed, Nix only allows networking inside a derivation if you provide the output hash. This would mean that Jaspr would have to be capable of always producing the same exact output in order to get it working in its current state. This also means updating that hash with every single change which is kinda unreasonable. So yeah, being able to disable the networking is a hard requirement. |
This is nothing that You can try running Not sure if that works if you are in a sandbox though. You need somehow to move all packages into the sandbox as well if you don't want to do any network requests. |
Except it'll fetch by default unless you specify a packages JSON file.
Already tried that and it didn't help. |
Ah looks like this is a dart bug: dart-lang/pub#4390 |
Description
Steps To Reproduce
jaspr_cli
to set up a basic sitejaspr_cli
todev
dependenciesyq . pubspec.lock > pubspec.lock.json
default.nix
below andnix-build
.Expected Behavior
Jaspr should build
Additional Context
Requires an overlay for nix to support Dart 3.5.1
The text was updated successfully, but these errors were encountered: