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

Use nightly toolchain for formatting #100

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Oct 18, 2022

@da2ce7 started using the nightly build for rust formatting in this PR-99

And the job 'format' in the workflow did not work, showing these warnings:

Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.

So we needed the nightly channel anyway. I've changed the workflow to use it.

@da2ce7
Copy link
Contributor

da2ce7 commented Oct 18, 2022

@josecelano before enabling clippy in the CI, we should fix all the errors...

@josecelano josecelano force-pushed the nightly-toolchain-for-formatting branch 4 times, most recently from 28a7ff2 to 37ac14e Compare October 18, 2022 13:15
@da2ce7 started using the nightly build for rust formatting here:

#99

And the job 'format' in the workflow did not work, showing these
warnings:

```
Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
```

So we needed the nightly channel anyway.
@josecelano josecelano force-pushed the nightly-toolchain-for-formatting branch from 37ac14e to f2eaf95 Compare October 18, 2022 13:18
@josecelano josecelano marked this pull request as ready for review October 18, 2022 13:21
@josecelano josecelano requested a review from da2ce7 October 18, 2022 13:21
@josecelano
Copy link
Member Author

@josecelano before enabling clippy in the CI, we should fix all the errors...

Yes. I was only testing that the command works if we add it in the future.

@josecelano
Copy link
Member Author

ACK f2eaf95

@da2ce7
Copy link
Contributor

da2ce7 commented Oct 18, 2022

@josecelano why change to use the cargo action?

@josecelano
Copy link
Member Author

@josecelano why change to use the cargo action?

@da2ce7 I think the action will create an "annotation" (GitHub UI) when something fails. The cargo command would only show the error in the logs. That was the only reason.

Anyway, you can easily enable cross-compilation. Although we do not need it in this case.

@WarmBeer was working on this cross-compilation issue. Maybe we could add a workflow to compile for different targets in the future.

Copy link
Contributor

@da2ce7 da2ce7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f2eaf95

@da2ce7 da2ce7 merged commit 9358fd5 into develop Oct 18, 2022
@da2ce7 da2ce7 deleted the nightly-toolchain-for-formatting branch August 30, 2023 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants