# No more dependency management headaches

DevFeed: [No more dependency management headaches](<https://devfeed.tech/articles/no-more-dependency-management-headaches-51509.md>)

Original publisher: [Read original article](<https://gleam.run/news/no-more-dependency-management-headaches>)

Author: Louis Pilfold

Published: 2025-08-05T00:00:00Z

Content type: release

Language: en

Sources: [Gleam](<https://devfeed.tech/sources/gleam.md>)

Topics: [Dependency management](<https://devfeed.tech/topics/dependency-management.md>), [Package Management](<https://devfeed.tech/topics/package-management.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Erlang](<https://devfeed.tech/topics/erlang.md>)

Tags: [dependency](<https://devfeed.tech/tags/dependency.md>), [dependency-management](<https://devfeed.tech/tags/dependency-management.md>), [error](<https://devfeed.tech/tags/error.md>), [error-messages](<https://devfeed.tech/tags/error-messages.md>), [javascript](<https://devfeed.tech/tags/javascript.md>)

## AI overview

Gleam v1.12.0 makes dependency conflicts easier to resolve by showing the package version requirements that clash, and `gleam update` and `gleam deps download` now report when newer major versions are available. Major upgrades may include breaking changes, so developers still need to check compatibility. Other changes include custom messages for `echo`, smaller generated output, more flexible list formatting, and JSDoc comments in JavaScript output. Compiler diagnostics add hints for discarded variables and redundant comparisons; the release also enables conservative Erlang local-function inlining, which may improve performance for some BEAM programs.

## Source excerpt

Gleam is a type-safe and scalable language for the Erlang virtual machine and JavaScript runtimes. Today Gleam v1.12.0 has been published. Let's take a look at the highlights. Understanding dependency conflicts Gleam packages use semantic versioning, and they specify what ranges of releases they are compatible with to ensure that all selected versions are compatible with each other. This is very useful in ensuring that you don't end up stuck with invalid versions that cause the project to fail to compile, or are broken in more confusing subtle ways. This does, however, mean that sometimes you will have conflicts when adding a dependency, as there's no version which is compatible with the existing versions you have locked. Historically this has been very confusing as we haven't been able to display much useful information when this happens. error: Dependency resolution failed An error occurred while determining what dependency packages and versions should be downloaded. The error from the version resolver library was: Unable to find compatible versions for the version constraints in your gleam.toml. The conflicting packages are: - app - wisp - mist - gleam_otp - gleam_json It's not clear at all what the problem is, or what the programmer might need to do to resolve the problem. This is not fun for them at all. Thanks to a lot of hard work from Jak and a new release of the underlying pubgrub version solving algorithm library Gleam will now provide much clearer error messages: error: Dependency resolution failed There's no compatible version of `gleam_otp`: - You require wisp >= 1.0.0 and < 2.0.0 - wisp requires mist >= 1.2.0 and < 5.0.0 - mist requires gleam_otp >= 0.9.0 and < 1.0.0 - You require lustre >= 5.2.1 and < 6.0.0 - lustre requires gleam_otp >= 1.0.0 and < 2.0.0 There's no compatible version of `gleam_json`: - You require wisp >= 1.0.0 and < 2.0.0 - wisp requires gleam_json >= 3.0.0 and < 4.0.0 - You require gleam_json >= 2.3.0 and < 3.0.0 Version solving is