Skip to content

Commit

Permalink
Enable codegen on relocated files (Cherry-pick of #15100) (#15130)
Browse files Browse the repository at this point in the history
I have a codegenerator generating a file target and was surprised when it wasn't relocated. No reason relocated files can't participate in the codegen games. 

[ci skip-rust]
[ci skip-build-wheels]
  • Loading branch information
thejcannon committed Apr 13, 2022
1 parent 6bc8763 commit 113f35a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/python/pants/core/target_types_test.py
Expand Up @@ -166,9 +166,8 @@ def test_relocated_relocated_files() -> None:
rule_runner = RuleRunner(
rules=[
*target_type_rules(),
*archive.rules(),
*source_files.rules(),
*system_binaries.rules(),
*archive_rules(),
*source_files_rules(),
QueryRule(GeneratedSources, [RelocateFilesViaCodegenRequest]),
QueryRule(TransitiveTargets, [TransitiveTargetsRequest]),
QueryRule(SourceFiles, [SourceFilesRequest]),
Expand Down

0 comments on commit 113f35a

Please sign in to comment.