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

fix: lake: make package extraDep intransitive #5641

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

tydeu
Copy link
Member

@tydeu tydeu commented Oct 7, 2024

A Lake build of target within a a package will no longer build a package's dependencies package-level extra targets dependencies. At the technical level, a package's extraDep facet no longer transitively builds its dependencies' extraDep facet.

Closes #5633.

@tydeu tydeu changed the title fix: make package extraDep intransitive fix: lake: make package extraDep intransitive Oct 7, 2024
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Oct 7, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Oct 7, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Oct 7, 2024
@leanprover-community-bot leanprover-community-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Oct 7, 2024
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Oct 7, 2024

Mathlib CI status (docs):

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Oct 8, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Oct 8, 2024
@tydeu tydeu added the will-merge-soon …unless someone speaks up label Oct 8, 2024
@tydeu tydeu added this pull request to the merge queue Oct 8, 2024
Merged via the queue into leanprover:master with commit 7942b9e Oct 8, 2024
16 checks passed
Copy link
Contributor

github-actions bot commented Oct 8, 2024

The backport to releases/v4.13.0 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-releases/v4.13.0 releases/v4.13.0
# Navigate to the new working tree
cd .worktrees/backport-releases/v4.13.0
# Create a new branch
git switch --create backport-5641-to-releases/v4.13.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 7942b9eaae3b4c57b1069c0107ddca14766e0f43
# Push it to GitHub
git push --set-upstream origin backport-5641-to-releases/v4.13.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-releases/v4.13.0

Then, create a pull request where the base branch is releases/v4.13.0 and the compare/head branch is backport-5641-to-releases/v4.13.0.

@tydeu tydeu deleted the lake/extra-dep-no-trans branch October 9, 2024 00:29
github-actions bot pushed a commit that referenced this pull request Oct 19, 2024
A Lake build of target within a a package will no longer build a
package's dependencies package-level extra targets dependencies. At the
technical level, a package's `extraDep` facet no longer transitively
builds its dependencies' `extraDep` facet.

Closes #5633.

(cherry picked from commit 7942b9e)
tydeu added a commit that referenced this pull request Oct 19, 2024
A Lake build of target within a a package will no longer build a
package's dependencies package-level extra targets dependencies. At the
technical level, a package's `extraDep` facet no longer transitively
builds its dependencies' `extraDep` facet.

Closes #5633.

(cherry picked from commit 7942b9e)
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Nov 7, 2024
This check had been removed (cf #17490 and #17491) since it stopped working temporarily.  It seems that it works again!  🐙 

(According to a comment on #17491, the fix was apparently in leanprover/lean4#5641)
TobiasLeichtfried pushed a commit to leanprover-community/mathlib4 that referenced this pull request Nov 21, 2024
This check had been removed (cf #17490 and #17491) since it stopped working temporarily.  It seems that it works again!  🐙 

(According to a comment on #17491, the fix was apparently in leanprover/lean4#5641)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport releases/v4.13.0 builds-mathlib CI has verified that Mathlib builds against this PR toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN will-merge-soon …unless someone speaks up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lake fetches caches for unbuilt dependencies
2 participants