Skip to content

Commit

Permalink
Resolve paths in config targets, so building in root ('.') works.
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanzin committed Jan 4, 2024
1 parent 26262d3 commit 63d975a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wily/commands/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def build(config: WilyConfig, archiver: Archiver, operators: List[Operator]) ->
# Check that changed files are children of the targets
True
for target in config.targets
if pathlib.Path(target)
if pathlib.Path(target).resolve()
in (pathlib.Path(config.path) / file).parents
)
]
Expand Down

0 comments on commit 63d975a

Please sign in to comment.