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

show latest major version available in gleam deps update #3876

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
c657d8c
feat(dependency): add function to get latest major version info of de…
andho Nov 22, 2024
7474353
feat(dependencies): check and show new major versions are available f…
andho Nov 22, 2024
155b292
feat: only check for major version for direct dependencies :sparkles:
andho Nov 22, 2024
cd3165f
feat: ignore pre release versions and sort versions before getting la…
andho Nov 22, 2024
2a46b49
refactor(dependencies): output major version availability hint to std…
andho Dec 6, 2024
bb72794
refactor: move major version check into a separate testable unit :rec…
andho Dec 6, 2024
76c5ca2
feat(dependencies): pretty print major version update hint into colum…
andho Dec 6, 2024
d3b26ca
refactor: improve the test case so the direct dependency is not updat…
andho Dec 6, 2024
69bdff9
feat(dependencies): cache package info from hexpm to reduce duplicate…
andho Dec 6, 2024
d7817d3
refactor(dependencies): return formatted string and eprint :recycle:
andho Dec 12, 2024
d1f918b
refactor(dependency): remove unnecessary clone and use `max` instead …
andho Dec 12, 2024
3e02ec3
refactor(dependencies): use the same `PackageFetcher` during dependen…
andho Dec 13, 2024
dbdcdd3
docs(dependencies): fix doc comment for `cache_package` :bug: :memo:
andho Dec 13, 2024
4d4000c
refactor: remove dyn for PackageFetcher :recycle:
andho Dec 28, 2024
dccd156
refactor(dependencies): move get_manifest and resolve_versions into a…
andho Dec 28, 2024
17f11a8
refactor(dependencies): only check for major versions on update and d…
andho Dec 28, 2024
c4c8340
refactor(dependencies): move DependencyManager config stuff to method…
andho Dec 28, 2024
22b1135
refactor(dependencies): share package using Rc instead of cloning :re…
andho Dec 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compiler-cli/src/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub fn command(packages_to_add: Vec<String>, dev: bool) -> Result<()> {
Some((new_package_requirements.clone(), dev)),
Vec::new(),
UseManifest::Yes,
false,
)?;

// Read gleam.toml and manifest.toml so we can insert new deps into it
Expand Down
2 changes: 1 addition & 1 deletion compiler-cli/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::{

pub fn download_dependencies(telemetry: impl Telemetry) -> Result<Manifest> {
let paths = crate::find_project_paths()?;
crate::dependencies::download(&paths, telemetry, None, Vec::new(), UseManifest::Yes)
crate::dependencies::download(&paths, telemetry, None, Vec::new(), UseManifest::Yes, false)
}

pub fn main(options: Options, manifest: Manifest) -> Result<Built> {
Expand Down
Loading