Skip to content

cabal: Add necessary aliases for vendored packages with executables #2309

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

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

iteratee
Copy link
Contributor

This allows vendoring of packages with necessary tools from a stack snapshot. For example, if the cabal file for cpphs hasn't yet been bumped on hackage with increased bounds for the newest ghc.

@iteratee iteratee requested a review from avdv as a code owner May 15, 2025 23:25
Copy link
Member

@avdv avdv left a comment

Choose a reason for hiding this comment

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

Thank you!

It took me a while to figure out what's going on; so for posterity and to remind myself:

For stack_snapshot there will be a repository called stackage (let's say) and for each of the library components there will be a haskell_cabal_library target.

For exe components, there will be a haskell_cabal_binary target (called _<name>_exe_<exe-name>). But also, there will be an alias (just exe-name) in the stackage-exe repository pointing to the actual haskell_cabal_binary in stackage.

For vendored packages, the haskell_binary_target does not exist in stackage, so this needs another alias pointing to the actual exe target in the repository of the vendored package.

@avdv
Copy link
Member

avdv commented Jun 23, 2025

@iteratee somehow CI failed and I cannot seem to retry it. Could you please rebase and re-push your branch?

@iteratee iteratee force-pushed the kb/vendored-cabal-exe branch 2 times, most recently from 7537a28 to 24387ed Compare June 29, 2025 21:53
This allows vendoring of packages with necessary tools from a stack
snapshot. For example, if the cabal file for `cpphs` hasn't yet been
bumped on hackage with increased bounds for the newest ghc.
@iteratee iteratee force-pushed the kb/vendored-cabal-exe branch from 24387ed to 23e24da Compare June 29, 2025 21:59
@iteratee
Copy link
Contributor Author

@iteratee somehow CI failed and I cannot seem to retry it. Could you please rebase and re-push your branch?

I rebased and CI is more happy, but the windows tests failed. I can rebase again, but it would help to know if that was transient, expected, soon to be fixed, etc.

@avdv
Copy link
Member

avdv commented Jul 21, 2025

I rebased and CI is more happy, but the windows tests failed. I can rebase again, but it would help to know if that was transient, expected, soon to be fixed, etc.

Thank you! This seems to be the same error we also saw in #2312. It only seems to happen for PRs having no access to the Buildbuddy API secret. So, that seems to be a caching issue and not related to this change.

@avdv avdv merged commit a5e1938 into tweag:master Jul 21, 2025
57 of 60 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.

2 participants