-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
fix: ts_project external workspace builds #310
Conversation
eaa18c6
to
0043de1
Compare
Question: Where are the |
See |
0043de1
to
ae5b699
Compare
Ah thanks, I did look in |
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.
Left some suggestions
ae5b699
to
2e188e7
Compare
Thanks for the suggestions @gregmagolan, updated with the fixes! |
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.
🦖
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.
Noticed one last thing
Refs aspect-build#284. This allows `ts_project()` to build correctly while in an external workspace. This commit is a slightly modified version of [this diff](aspect-build#284 (comment)).
…pace Closes aspect-build#284. This sets up two workspaces, one with a `ts_project()` and another which depends on the first. When the second workspace is built, it triggers a build of the `ts_project()` which is under `@lib_wksp`, not the main workspace. This would trigger aspect-build#284 if not properly fixed. Note that we don't actually need to do anything with the `ts_project()` output, we just need to trigger to build, so a `build_test()` is sufficient to reproduce the error.
2e188e7
to
0139263
Compare
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.
🌮
Refs #48. This pulls in aspect-build/rules_ts#310 to fix `ts_project()` builds in external workspaces, meaning we can remove the local patch.
Fixes #284.
short_path
is not sufficient to handle external paths and we need to stripctx.bin_dir.path
instead. This updates thets_project()
rules as well as adds a regression test which triggers ats_project()
target to build from the context of an external workspace.