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

pkg-catalogs issues with pkg-install-command #4427

Closed
xgqt opened this issue Sep 5, 2022 · 3 comments
Closed

pkg-catalogs issues with pkg-install-command #4427

xgqt opened this issue Sep 5, 2022 · 3 comments

Comments

@xgqt
Copy link
Contributor

xgqt commented Sep 5, 2022

1. Setting current-pkg-catalogs parameter does not change the catalogs used by pkg-install-command

(require net/url)
(current-pkg-catalogs (list (string->url "https://google.com")))
(pkg-install-command "asd")

Result:

Resolving "asd" via https://download.racket-lang.org/releases/8.6/catalog/
Resolving "asd" via https://pkgs.racket-lang.org
Resolving "asd" via https://planet-compats.racket-lang.org
; main.rkt install: cannot find package on catalogs
;   package: asd

2. Using the #:catalog keyword in pkg-install-command does not change the catalogs

(pkg-install-command "asd" #:catalog "https://bing.com")

Result:

Resolving "asd" via https://download.racket-lang.org/releases/8.6/catalog/
Resolving "asd" via https://pkgs.racket-lang.org
Resolving "asd" via https://planet-compats.racket-lang.org
; main.rkt install: cannot find package on catalogs
;   package: asd
@mflatt mflatt closed this as completed in 4e69f95 Sep 5, 2022
@mflatt
Copy link
Member

mflatt commented Sep 5, 2022

Thanks for the report!

@xgqt
Copy link
Contributor Author

xgqt commented Sep 5, 2022 via email

@racket-discourse-github-bot

This issue has been mentioned on Racket Discussions. There might be relevant details there:

https://racket.discourse.group/t/req-dependency-manager-for-racket-projects/1277/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants