Skip to content
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

Disable the nightly formatter by default #37

Merged
merged 4 commits into from
Jun 8, 2023
Merged

Conversation

j-baker
Copy link
Contributor

@j-baker j-baker commented Jun 8, 2023

Hi! I saw the default nightly formatting feature merge earlier and I realised that I was kind of hosed. Why? I don't use Rustup, and this feature relies on Rustup, so my kraken fmt doesn't work anymore.

I'm also a bit concerned that the behaviour as implemented default moves every dev team onto nightly Rust, which I don't think we should be encouraging without careful thought and some tooling.

I'd therefore like us to take a quick step back by making it be an opt-in and not an opt-out feature so as to give more time for the above attributes to be addressed. Sound good?

It feels like the correct default behaviour would be to add a 'nightly' flag that runs all commands with nightly rust, rather than just fmt, and so one can opt a project into nightly rust and not just the formatter.

j-baker and others added 4 commits June 8, 2023 17:11
Hi! I saw the default nightly formatting feature merge earlier and I realised that I was kind of hosed. Why? I don't use Rustup, and this feature relies on Rustup, so my kraken fmt doesn't work anymore.

I'm also a bit concerned that the behaviour as implemented forces every dev team onto nightly Rust, which I don't think we should be encouraging without careful thought and some tooling.

I'd therefore like us to take a quick step back by making it be an opt-in and not an opt-out feature so as to give more time for the above attributes to be addressed. Sound good?
@j-baker
Copy link
Contributor Author

j-baker commented Jun 8, 2023

I believe the glitch is here:

https://github.com/kraken-build/kraken-build/blob/develop/kraken-std/src/kraken/std/cargo/tasks/cargo_fmt_task.py#L42

where it fails if nightly is not the toolchain in use.

@ntrinquier ntrinquier merged commit 645f97c into develop Jun 8, 2023
8 checks passed
@j-baker j-baker deleted the j-baker-patch-1 branch June 8, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants