Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ minimal versions and fail if your compat bounds are too low.
# Default: .
projects: ''

# Downgrade mode: 'deps' (direct dependencies), 'alldeps' (deps + weakdeps), 'all' (all packages)
# Downgrade mode: 'deps' (direct dependencies), 'alldeps' (deps + weakdeps), 'weakdeps' (only weakdeps)
# Default: 'alldeps'
mode: ''

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
description: 'Comma-separated list of Julia projects to resolve.'
default: '.'
mode:
description: 'Downgrade mode: deps (direct dependencies), alldeps (deps + weakdeps), all (all packages)'
description: 'Downgrade mode: deps (direct dependencies), alldeps (deps + weakdeps), weakdeps (only weakdeps)'
default: 'alldeps'
julia_version:
description: 'Julia version to use with resolver (default: 1.10)'
Expand Down
4 changes: 2 additions & 2 deletions downgrade.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dirs = filter(!isempty, map(strip, split(ARGS[2], ",")))
mode = length(ARGS) >= 3 ? ARGS[3] : "deps"
julia_version = length(ARGS) >= 4 ? ARGS[4] : "1.10"

mode in ["deps", "alldeps", "all"] || error("mode must be deps, alldeps, or all")
mode in ["deps", "alldeps", "weakdeps"] || error("mode must be deps, alldeps, or weakdeps")

@info "Using Resolver.jl with mode: $mode"

Expand All @@ -25,4 +25,4 @@ for dir in dirs
@info "Running resolver on $dir with --min=@$mode"
run(`julia --project=$resolver_path/bin $resolver_path/bin/resolve.jl $dir --min=@$mode --julia=$julia_version`)
@info "Successfully resolved minimal versions for $dir"
end
end