-
Notifications
You must be signed in to change notification settings - Fork 311
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
Copy aspect files to workspace #7202
Open
LeFrosch
wants to merge
9
commits into
bazelbuild:master
Choose a base branch
from
LeFrosch:aspect-coping
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LeFrosch
changed the title
Copy aspect files to workspace root
Copy aspect files to workspace
Dec 20, 2024
LeFrosch
force-pushed
the
aspect-coping
branch
2 times, most recently
from
December 25, 2024 23:30
c65289c
to
78d12ee
Compare
LeFrosch
force-pushed
the
aspect-coping
branch
2 times, most recently
from
January 7, 2025 13:28
2fc7bca
to
e02934b
Compare
The AspectStorageService is responsible for writing the aspect files into a directory contained in the workspace root. The AspectWriter extension allows to register writers that write individual parts of the aspect to this directory.
LeFrosch
force-pushed
the
aspect-coping
branch
2 times, most recently
from
January 13, 2025 19:19
1d8aa3f
to
9793dc0
Compare
Bazel 5 seems to have problems with relative labels used in the aspect. This also means that the plugin is no longer compatible with Bazel 5. # Conflicts: # MODULE.bazel.lock
LeFrosch
force-pushed
the
aspect-coping
branch
from
January 13, 2025 19:25
9793dc0
to
1742877
Compare
LeFrosch
force-pushed
the
aspect-coping
branch
from
January 13, 2025 21:24
9f748b1
to
012d8a1
Compare
github-actions
bot
added
product: CLion
CLion plugin
product: IntelliJ
IntelliJ plugin
product: GoLand
GoLand plugin
awaiting-review
Awaiting review from Bazel team on PRs
labels
Jan 14, 2025
mai93
reviewed
Jan 16, 2025
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.
Thanks @LeFrosch! I left some comments. I am not familiar with the template related parts if you would like someone else to review those.
To ensure compatibility when executing the jars during the aspect execution, they have to be built with java 8.
mai93
approved these changes
Jan 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
awaiting-review
Awaiting review from Bazel team on PRs
product: CLion
CLion plugin
product: GoLand
GoLand plugin
product: IntelliJ
IntelliJ plugin
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Copy all aspects into the workspace instead of using a
--override_repository
or--inject_repository
flag to point to the bundled aspects. This provides some benefits:--override_repository
--inject_repository
is also not requiredSince aspects need to be copied to the workspace anyway, we can now store them inside the plugin jar. This makes accessing the aspects easier, since they are not in different locations for tests and production.
Also adds aspect writing as a dedicated sync step: