-
Notifications
You must be signed in to change notification settings - Fork 81
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
Cleanup: remove deprecated options and targets #2050
Conversation
3cbfaf3
to
22bfb82
Compare
This option was deprecated since rules_haskell 0.14, so it is time to get rid of it.
These were introduced in rules_haskell 0.7 and have been deprecated since.
The core rules_haskell module only depends on rules_nixpkgs_* as dev dependencies, so do not reference these from the haskell package.
There is no need to build and run buildifier for each module and for every GHC version in order to keep the code base in shape. Tag the buildifier tests with `manual` and only run the buildifier for the top-level repository (which formats / lints all files of the git repo).
Use `//buildifier:buildifier_test` to check for proper formatting.
22bfb82
to
87f4fe9
Compare
ping @aherrmann |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup, thank you!
.github/workflows/workflow.yaml
Outdated
bazel test //... | ||
bazel build //... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is done because rules_haskell_nix
does not contain any tests (apart from the manual buildifier test)?
We need not to forget to switch this back if we every add tests again.
I wonder if it may be safer to add a dummy test and keep this as bazel test //...
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. I added a small test and removed the test -> build
commit.
``` WARNING: <root>/MODULE.bazel:216:24: The module extension go_deps defined in @gazelle//:extensions.bzl reported incorrect imports of repositories via use_repo(): Imported, but reported as indirect dependencies by the extension: com_github_golang_mock, com_github_golang_protobuf, org_golang_google_genproto, org_golang_google_grpc, org_golang_google_protobuf, org_golang_x_net, org_golang_x_tools ** You can use the following buildozer command(s) to fix these issues: buildozer 'use_repo_remove @gazelle//:extensions.bzl go_deps com_github_golang_mock com_github_golang_protobuf org_golang_google_genproto org_golang_google_grpc org_golang_google_protobuf org_golang_x_net org_golang_x_tools' //MODULE.bazel:all ```
e0c2095
to
0cfb659
Compare
0cfb659
to
49e009b
Compare
49e009b
to
2a250dd
Compare
compiler_flags
option (users will get an error message now telling them to useghcopts
instead, to ease the migration -- this error handling should be removed after the next version was released)