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

Add a hash of libc in a resource to bust the cache when it changes #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

johnynek
Copy link
Collaborator

No description provided.

remote = "git://github.com/andyscott/rules_adroit",
)
#git_repository(
# name = "rules_adroit",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this failed to download on my machine, with this repo's config... this repo has definitely bitrotted.

def _get_hash_mac_libc(ctx):
res = _good_execute(ctx, ["otool", "-L", "/bin/ls"])
lines = res.splitlines()
matched = [line for line in lines if "libSystem.B.dylib" in line]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this path isn't a real path on my machine... so it claims /usr/lib/libSystem.B.dylib exists, but when I ls it, it isn't there. So I just take the full line which has some compatibility and version info and hope for the best.

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.

1 participant