Skip to content

Add module-root option for changing module location within the repository#69

Merged
p0deje merged 2 commits intobazel-contrib:mainfrom
calebzulawski:main
Feb 21, 2025
Merged

Add module-root option for changing module location within the repository#69
p0deje merged 2 commits intobazel-contrib:mainfrom
calebzulawski:main

Conversation

@calebzulawski
Copy link
Contributor

Fixes #67

@calebzulawski
Copy link
Contributor Author

The last iteration of dist/ was broken because I had the wrong version of node installed... I'm still not sure this is right. Sorry, don't use node usually :)

@p0deje
Copy link
Member

p0deje commented Feb 20, 2025

Does it work on your projects?

@calebzulawski
Copy link
Contributor Author

Yep, it appears to work for me. I get a bazelisk cache key now

@p0deje
Copy link
Member

p0deje commented Feb 20, 2025

Does the disk cache work fine as well?

@calebzulawski
Copy link
Contributor Author

calebzulawski commented Feb 20, 2025

It appears to work to the extent that the hashes are correct... I think I might be running into another issue:

setup-bazel/post.js

Lines 70 to 72 in 9824807

if (cacheHit === 'true') {
return
}

If the BUILD files are all the same, but something in the sources or workflow changes, doesn't this prevent the updated disk cache from being saved?

@p0deje
Copy link
Member

p0deje commented Feb 21, 2025

If the BUILD files are all the same, but something in the sources or workflow changes, doesn't this prevent the updated disk cache from being saved?

Yes, it prevents uploading - the disk cache is not stored incrementally. See #18 for a discussion on this topic.

@p0deje p0deje merged commit e0e802d into bazel-contrib:main Feb 21, 2025
3 checks passed
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.

Multiple modules in repository

2 participants