Skip to content

gleam update should return error if package does not exists#5171

Merged
lpil merged 3 commits intogleam-lang:mainfrom
vshakitskiy:update-error-if-not-exists
Jan 12, 2026
Merged

gleam update should return error if package does not exists#5171
lpil merged 3 commits intogleam-lang:mainfrom
vshakitskiy:update-error-if-not-exists

Conversation

@vshakitskiy
Copy link
Contributor

Fixes #4836.
Continuation of #4887.

The only question is that I don't know how to test ensure_packages_exist_locally. Should I extract it to a standalone function outside of the impl block?

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

Mm yes it's tricky, this bit of the codebase isn't very testable. What you've suggested sounds good to me.

@vshakitskiy vshakitskiy requested a review from lpil December 1, 2025 19:22
@vshakitskiy vshakitskiy force-pushed the update-error-if-not-exists branch 5 times, most recently from c09dd5e to 5ecddc2 Compare December 5, 2025 10:35
@vshakitskiy vshakitskiy force-pushed the update-error-if-not-exists branch from d0f4aea to 21cea15 Compare December 15, 2025 09:26
@vshakitskiy vshakitskiy force-pushed the update-error-if-not-exists branch from 21cea15 to c1d0076 Compare December 23, 2025 06:56
@vshakitskiy vshakitskiy force-pushed the update-error-if-not-exists branch from c1d0076 to f767d00 Compare December 29, 2025 13:37
@vshakitskiy vshakitskiy force-pushed the update-error-if-not-exists branch from f767d00 to 2a51ec4 Compare December 29, 2025 13:38
Copy link
Member

@giacomocavalieri giacomocavalieri left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Member

@lpil lpil 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!!

@lpil lpil merged commit c807785 into gleam-lang:main Jan 12, 2026
12 checks passed
@vshakitskiy vshakitskiy deleted the update-error-if-not-exists branch January 13, 2026 08:39
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.

Return an error if asked to update a package that does not exist

3 participants