Skip to content

Conversation

@virusdave
Copy link
Contributor

Description

See comments in change for detailed motivation. TL;DR: Allow the capture of formatted sources, original sources, and manifest to be passed via runfiles phase to downstream dependencies, such as a wrapping sh_test, allowing it to
actually access those during a bazel test invocation and fail a build if the format is incorrect.

@virusdave
Copy link
Contributor Author

Lemme check why the tool deps are causing a test failure now whereas they weren't previously. I might need to tweak something and will update the PR if so.

See comments for detailed motivation
@virusdave virusdave force-pushed the dnicponski/scratch/update_scalafmt_phase_order branch from 1502a1f to 8e36f3e Compare February 8, 2022 23:08
Comment on lines +43 to +47
"@org_scalameta_common",
"@org_scalameta_parsers",
"@org_scalameta_scalafmt_core",
"@org_scalameta_scalameta",
"@org_scalameta_trees",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

NB: These are already transitive dependencies of scalafmt_core, but with the new phase position, the test requiring explicitly-specified dependencies requires them to be listed explicitly.

@simuons simuons merged commit 22e999c into bazel-contrib:master Feb 9, 2022
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.

3 participants