Skip to content

soar declarative package management fails to download #177

Description

@kendy-lovely

Problem

when using soar declarative package management, downloads seem to fail. despite it working if i use soar install.

issue:

$ soar apply -y -v
[DEBUG] loading configuration
[DEBUG] config file not found, using defaults
[DEBUG] configuration loaded
Loaded 3 package declaration(s)
[DEBUG] computing apply diff
[DEBUG] initializing repository databases
[DEBUG] opening database connection
[DEBUG] database opened successfully
[DEBUG] creating metadata manager
[DEBUG] adding metadata database to manager
[DEBUG] opening metadata database
[DEBUG] metadata database opened successfully
[DEBUG] metadata manager created
[DEBUG] opening database connection
[DEBUG] database opened successfully

╭──────────────────────────────────────────────────────╮
│ Package Changes                                      │
├───┬──────────────────────────┬──────────┬────────────┤
│   │ Package                  │ Version  │ Repository │
│ + │ kicad#pkgforge-dev.kicad │ 10.0.4-1 │ soarpkgs   │
╰───┴──────────────────────────┴──────────┴────────────╯

╭──────────────────╮
│ Summary          │
├──────────────┬───┤
│ + To Install │ 1 │
│ ✓ In Sync    │ 2 │
╰──────────────┴───╯
[DEBUG] executing apply
[DEBUG] performing installation
[DEBUG] installing package
[DEBUG] starting package download
[DEBUG] source: ghcr.io/pkgforge/pkgforge-dev/kicad/kicad:{{version}}-x86_64-linux (OCI)
[DEBUG] starting OCI download
[DEBUG] fetching OCI manifest
[WARN] download failed, retrying after delay
[DEBUG] starting OCI download
[DEBUG] fetching OCI manifest
[WARN] download failed, retrying after delay
[DEBUG] starting OCI download
[DEBUG] fetching OCI manifest
[WARN] download failed, retrying after delay
^C

Steps to reproduce

add a package using declarative package management (like this)

$ cat soarpkgs
# Soar Declarative Package Configuration
# Run `soar apply` to install packages defined here.
# Run `soar apply --prune` to also remove packages not listed.
#
# Package format:
#   package_name = "*"                    # Latest version
#   package_name = "1.2.3"                # Specific version (pinned)
#   package_name = { version = "1.2" }    # Same as above
#   package_name = { pkg_id = "pkg-bin", repo = "bincache" }
#   package_name = { pinned = true, portable = { home = "~/.pkg" } }

# Default settings applied to all packages unless overridden.
#
# Default settings for all packages.
[defaults]
# Default profile to use for installations.
profile = "default"
# Whether to install binary only (exclude logs, desktop files, etc).
binary_only = false

# Map of package names to their specifications.
# Supports both simple string form (version) and detailed table form.
[packages]
blender = "*"
kicad = "*"
frankenphp = { 
	github = "php/frankenphp",  
	asset_pattern = "frankenphp-linux-*-mimalloc", 
	version = "1.12.4" }

Expected behavior

for it to installl normally like if i were to use soar install

$ soar install kicad -v
[DEBUG] loading configuration
[DEBUG] config file not found, using defaults
[DEBUG] configuration loaded
[DEBUG] starting package installation
[DEBUG] resolving packages for install
[DEBUG] initializing repository databases
[DEBUG] opening database connection
[DEBUG] database opened successfully
[DEBUG] creating metadata manager
[DEBUG] adding metadata database to manager
[DEBUG] opening metadata database
[DEBUG] metadata database opened successfully
[DEBUG] metadata manager created
[DEBUG] opening database connection
[DEBUG] database opened successfully
[DEBUG] resolved install targets
[DEBUG] performing installation
[DEBUG] installing package
[DEBUG] starting package download
[DEBUG] source: ghcr.io/pkgforge/pkgforge-dev/kicad/kicad:10.0.4-1-x86_64-linux (OCI)
[DEBUG] starting OCI download
[DEBUG] fetching OCI manifest
[DEBUG] downloading layers
[DEBUG] OCI download completed successfully
[DEBUG] integrating package with desktop environment
[DEBUG] icon symlink created
[DEBUG] desktop file symlink created
[DEBUG] package integration completed
[DEBUG] recording installation
[DEBUG] installation complete
 ✓ kicad#pkgforge-dev.kicad: installed

✓ kicad#pkgforge-dev.kicad:soarpkgs // [omitted my directories]
  📂 Binaries:
    → // [omitted my directorys]
  📝 Notes:
    Fetched from Pre Built Community Created AppImage. Check/Report @ https://github.com/pkgforge-dev/KiCad-AppImage
    [PORTABLE] (Works on AnyLinux)

╭──────────────────────╮
│ Installation Summary │
├───────────────┬──────┤
│ ✓ Installed   │ 1/1  │
╰───────────────┴──────╯

Soar version (soar -V)

soar-cli 0.12.4

Operating system (if issue is related to OS)

Void Linux

Installation

github release binary

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions