Skip to content

feat: delete build caches after removing dependencies#5399

Draft
ankddev wants to merge 2 commits intogleam-lang:mainfrom
ankddev:invalidate-build-cache-remove-command
Draft

feat: delete build caches after removing dependencies#5399
ankddev wants to merge 2 commits intogleam-lang:mainfrom
ankddev:invalidate-build-cache-remove-command

Conversation

@ankddev
Copy link
Contributor

@ankddev ankddev commented Feb 27, 2026


  • The changes in this PR have been discussed beforehand in an issue
  • The issue for this PR has been linked
  • Tests have been added for new behaviour
  • The changelog has been updated for any user-facing changes

@yoshi-monster
Copy link
Contributor

Isn't running gleam clean afterwards way to broad since it also recompiles all dependencies? Wouldn't we just want to invalidate the top-level package?

@ankddev ankddev marked this pull request as draft February 28, 2026 04:46
@ankddev
Copy link
Contributor Author

ankddev commented Feb 28, 2026

Yeah, I was thinking about that, drafted PR for now. Initially I wanted to implemebt it like in the LS, where we clean build directory for LSP mode, current target and current package. It's the information that we don't have in cleanup code. I will try to implement it anyway.

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.

gleam remove could invalidate the build cache

2 participants