Skip to content
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

feat: implement structure_test #31

Merged
merged 5 commits into from
Dec 6, 2022
Merged

feat: implement structure_test #31

merged 5 commits into from
Dec 6, 2022

Conversation

thesayyn
Copy link
Collaborator

No description provided.

@thesayyn thesayyn force-pushed the structure_test branch 18 times, most recently from ea4e833 to ede2d6c Compare August 24, 2022 00:00
@thesayyn thesayyn force-pushed the structure_test branch 5 times, most recently from c63bea7 to b073841 Compare September 23, 2022 17:07
@thesayyn thesayyn marked this pull request as ready for review November 2, 2022 17:29
@thesayyn thesayyn force-pushed the structure_test branch 2 times, most recently from 8d39609 to 4989f92 Compare November 2, 2022 18:15
@thesayyn thesayyn force-pushed the structure_test branch 5 times, most recently from dbb7d89 to 66c966d Compare November 21, 2022 10:28
example/js/BUILD.bazel Show resolved Hide resolved
example/js/js_image_layer.bzl Outdated Show resolved Hide resolved
# for why this is needed.
_LAUNCHER_TMPL = """
export BAZEL_BINDIR=.
source {executable_path}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it use source instead of exec?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1- avoid $0 type of bugs. RUNFILES helper relies on that heavily.
2- any future implicit reliance of executable_path being the entrypoint.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried with exec. it doesn't work with it.

example/js/js_image_layer.bzl Show resolved Hide resolved
example/js/js_image_layer.bzl Outdated Show resolved Hide resolved
oci/private/structure_test.bzl Outdated Show resolved Hide resolved
oci/private/structure_test.bzl Outdated Show resolved Hide resolved
oci/private/structure_test.bzl Outdated Show resolved Hide resolved
oci/repositories.bzl Outdated Show resolved Hide resolved
oci/toolchain.bzl Outdated Show resolved Hide resolved
@thesayyn thesayyn force-pushed the structure_test branch 2 times, most recently from d4fa9d9 to 3658ad2 Compare November 22, 2022 14:31
@thesayyn thesayyn merged commit 062bc0b into main Dec 6, 2022
@alexeagle
Copy link
Collaborator

@thesayyn WDYT about naming it oci_structure_test? I think all rules ought to have a common prefix to prevent collisions and make it clear what ruleset it comes from.

@alexeagle alexeagle deleted the structure_test branch May 4, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants