-
Notifications
You must be signed in to change notification settings - Fork 14
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
Can't install nu-git-manager
#108
Labels
bug
Something isn't working
Comments
i can repro with the following install as well
|
i have applied the following "debug" patch to the diff --git a/nupm/install.nu b/nupm/install.nu
index 29c7197..effed60 100644
--- a/nupm/install.nu
+++ b/nupm/install.nu
@@ -48,6 +48,8 @@ def install-path [
let package = open-package-file $pkg_dir
+ print "ok"
+
log info $"installing package ($package.name)"
match $package.type {
@@ -188,6 +190,7 @@ def fetch-package [
--registry: string # Which registry to use
--version: string # Package version to install (string or null)
]: nothing -> path {
+ print "fetch"
let regs = search-package $package --registry $registry --exact-match
if ($regs | is-empty) {
@@ -197,6 +200,8 @@ def fetch-package [
throw-error $'Multiple registries contain package ($package)'
}
+ print "ok regs"
+
# Now, only one registry contains the package
let reg = $regs | first
let pkgs = $reg.pkgs | filter-by-version $version
@@ -210,6 +215,7 @@ def fetch-package [
print $pkg
if $pkg.type == 'git' {
+ print "download"
download-pkg $pkg
} else {
# local package path is relative to the registry file (absolute paths
@@ -250,5 +256,6 @@ export def main [
$package
}
+ print "install"
install-path $pkg --force=$force
}
diff --git a/nupm/utils/package.nu b/nupm/utils/package.nu
index 8586184..01f7451 100644
--- a/nupm/utils/package.nu
+++ b/nupm/utils/package.nu
@@ -1,19 +1,25 @@
# Open nupm.nuon
export def open-package-file [dir: path] {
+ print "open package file"
if not ($dir | path exists) {
throw-error "package_dir_does_not_exist" (
$"Package directory ($dir) does not exist"
)
}
+ print "dir exists"
let package_file = $dir | path join "nupm.nuon"
+ print $package_file
+
if not ($package_file | path exists) {
throw-error "package_file_not_found" (
$'Could not find "nupm.nuon" in ($dir) or any parent directory.'
)
}
+ print "package file exists"
+
let package = open $package_file
log debug "checking package file for missing required keys" and i see the following when running locally use ./nupm/
nupm install nu-git-manager
so my guess is that Nupm simply does not handle repos with multiple packages even though the path of the packages are specified as reported by |
@kubouch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Steps to reproduce
Version
The text was updated successfully, but these errors were encountered: