-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Trunk builds an arbitrary binary out of available ones when not explicitly selected in index.html #475
Comments
I am willing to provide an implementation if the course of action is OK with maintainers |
Hello there. There is indeed rather strange behavior; however, I am not so sure that this is an issue with Trunk. Technically, Trunk simply uses Cargo to perform the builds, and will interpolate details into the call to cargo based on the details (or lack thereof) in the As stated in the docs here: Hopefully that helps |
Additionally, we could detect such cases proactively, and then bail with a warning to ensure that folks don't run into this type of issue. |
I'll see how difficult it is to add this check |
proceeding leads to indeterminte result where trunk picks up an arbitrary binary for the target. See trunk-rs#475
proceeding leads to indeterminte result where trunk picks up an arbitrary binary for the target. See trunk-rs#475
Please see related PR |
proceeding leads to indeterminte result where trunk picks up an arbitrary binary for the target. See trunk-rs#475
proceeding leads to indeterminte result where trunk picks up an arbitrary binary for the target. See trunk-rs#475
proceeding leads to indeterminte result where trunk picks up an arbitrary binary for the target. See trunk-rs#475
proceeding leads to indeterminte result where trunk picks up an arbitrary binary for the target. See trunk-rs#475
proceeding leads to indeterminte result where trunk picks up an arbitrary binary for the target. See trunk-rs#475
* Gather all artifacts from cargo cmd output * Abort build if binary artifact ambiguous proceeding leads to indeterminte result where trunk picks up an arbitrary binary for the target. See #475
Is code from your PR installed with |
According to the changelog this fix is not yet released. As a workaround you can |
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. |
Example
This project defines two different binaries
https://gitlab.com/samoylovfp/rust-browser-extension/-/tree/15d24e062e68cd637bc9ce39e1fefd0fedcbd89c
when running
trunk build
it takes an arbitrary one of those and processes it into thedist
directory.Running
trunk build
repeatedly flips between two different outcomesExpected
One of the following to happen
<link data-trunk ... />
tag intoindex.html
to resolve the ambiguity and exit with a non-zero code.Thanks for the awesome tool!
It is extremely handy to have a single command to build a deployable dist with a single command with no npm dependencies!
The text was updated successfully, but these errors were encountered: