Comments (6)
Hi, I also had this issue when specifying --bin
option for test. I have an alternate solution that does not require bacon.toml
file. The solution is to use an extra --
when specifying options to cargo
instead of bacon
.
In this case @Hubro would have change only one thing about the command, This would also keep the fix provided by #124 intact.
bacon test -- -- -p my_sub_package
from bacon.
It works for me.
Can you please give your configuration and/or build a complete reproductible example ?
from bacon.
It works for me.
Can you please give your configuration and/or build a complete reproductible example ?
Sure, here's a minimal example:
https://github.com/Hubro/bacon-issue-134-demo
To reproduce:
-
cargo test
Fails, because there's a syntax error in crate
dos
-
cargo test -p uno
Succeeds, because only crate
uno
is built -
bacon test -- -p uno
Fails with syntax error from crate
dos
, just like the commandcargo test
. It's as if the option-p uno
wasn't forwarded at all.
$ bacon --version
bacon 2.8.1
from bacon.
Ok, it's a consequence of #124
Here's the current "test" job definition:
[jobs.test]
command = [
"cargo", "test", "--color", "always",
"--", "--color", "always", # see https://github.com/Canop/bacon/issues/124
]
need_stdout = true
The addition made for #124 was unfortunate here.
As a workaround, you can change this job definition to
[jobs.test]
command = [
"cargo", "test", "--color", "always",
]
need_stdout = true
To do that, run bacon --init
then edit the bacon.toml
file.
(don't close the issue)
from bacon.
Right now I'm tempted to solve the problem with just some comment in the bacon.toml file, and maybe the website
from bacon.
Hi, I also had this issue when specifying
--bin
option for test. I have an alternate solution that does not requirebacon.toml
file. The solution is to use an extra--
when specifying options tocargo
instead ofbacon
.In this case @Hubro would have change only one thing about the command, This would also keep the fix provided by #124 intact.
bacon test -- -- -p my_sub_package
I think this work around may not work anymore. tested on bacon 2.13.0
. had to bacon --init
and remove the "--", "--color", "always", # see https://github.com/Canop/bacon/issues/124
line
from bacon.
Related Issues (20)
- Q/FR: More than one command per job HOT 12
- Showing only one error/warning per page HOT 2
- says there is 2 warnings when there is just one
- Publish binaries to github releases HOT 8
- Can't scroll using mouse in a terminal ? HOT 6
- Offline mode does not see path dependency changes HOT 1
- Default `bacon.toml` overrides `prefs.toml` configured jobs HOT 2
- Using `bacon` with `rust-analyzer` in VS Code HOT 4
- Screen doesn't clear when the file watcher restarts a long-running job HOT 8
- run tests with `-- --nocapture` option HOT 4
- bacon reacts to every inotify event, possibly seeing a broken project HOT 8
- Run multiple jobs after each other HOT 5
- Difference between how cargo clippy and bacon clippy treat tests HOT 2
- Fails to build with nightly 98aa3624b 2024-02-08 in ahash-0.8.2 HOT 4
- Bacon fails to properly rerun on changes that happen while compilation is ongoing HOT 7
- `bacon test` doesn't recognize `--features` HOT 4
- Can't seem to make `bacon test --no-default-features` work HOT 2
- Can't build on M3 MacPro with sold linker HOT 5
- wheel scrolling doesn't work in tmux / linux HOT 1
- Not displaying correctly on Windows Terminal, offset by one line HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bacon.