Skip to content

eget does not respect eget.toml when installing package that is represent in the config #8

@Kenya-West

Description

@Kenya-West

System (please complete the following information):

  • OS: linux
  • GO Version: absent
  • Pkg Version: dev-5b1d67b5

Describe the bug

eget does not respect eget.toml when installing package that is represent in the config. Tried with babarot/gomi.

To Reproduce

  1. Create ~/.config/eget/eget.toml with this contents:
[api_cache]
  cache_time = 300
  enable = false

[ghproxy]
  enable = false
  host_url = ""
  support_api = true

[global]
  cache_dir = "~/.cache/eget"
  proxy_url = ""
  system = ""
  target = "/usr/local/bin"

[packages]

[packages.gomi]
  repo = "babarot/gomi"
  1. Set location to ~:
Set-Location ~
  1. Install the babarot/gomi by eget:
sudo eget install babarot/gomi
🚀 Install babarot/gomi from repo
📦 Asset https://github.com/babarot/gomi/releases/download/v1.6.3/gomi_Linux_x86_64.tar.gz
Downloading [====================] 5.05M/5.05M
✅ Extracted gomi to gomi
  1. It installs the package to ~, not the /usr/local/bin, as set in [global] section of the eget.toml

Expected behavior

It should install to /usr/local/bin, as written in config file.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions