-
Notifications
You must be signed in to change notification settings - Fork 15
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
rename package file to nupm.nuon
#51
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are conflicts now |
this should solve the merge conflict from nushell#51.
well, basically all the packages in the Nupm index need to be fixed now (we won't be doing that for quite some time 😆)
the script to see the repos missing the new package fileconst PACKAGE_FILE = "nupm.nuon"
let index = open index.nuon | each {|it|
let pkg = $it.package | parse "{host}:{name}" | into record
let host = match $pkg.host {
"github.com" => "raw.githubusercontent.com",
_ => { error make --unspanned { msg: $"invalid host '($pkg.host)'" } },
}
let url = {
scheme: "https",
host: $host,
path: ($pkg.name | append ["main", $it.dir?, $PACKAGE_FILE] | compact | str join '/'),
}
let pkg = if $it.dir? == null {
$pkg.name
} else {
$"($pkg.name)@($it.dir)"
}
print $"fetching '($pkg)'"
let res = http get ($url | url join) --raw --allow-errors --full
if $res.status == 200 {
$res.body | from nuon | select name? version? type? | insert repo $pkg
} else {
{ repo: $pkg }
}
}
$index | where $it.name? == null |
amtoine
added a commit
to amtoine/nu-git-manager
that referenced
this pull request
Dec 15, 2023
related to - nushell/nupm#51 ## description this PR renames the `package.nuon` files to `nupm.nuon` as per nushell/nupm#51.
amtoine
added a commit
to amtoine/nu-pomodoro
that referenced
this pull request
Dec 16, 2023
related to - nushell/nupm#51
amtoine
added a commit
to amtoine/nu-right-prompt
that referenced
this pull request
Dec 16, 2023
related to - nushell/nupm#51
amtoine
added a commit
to amtoine/nu_plugin_explore
that referenced
this pull request
Dec 16, 2023
related to - nushell/nupm#51
amtoine
added a commit
to amtoine/zellij-layouts
that referenced
this pull request
Dec 16, 2023
amtoine
added a commit
to amtoine/scripts
that referenced
this pull request
Dec 16, 2023
related to - nushell/nupm#51
all the packages have been fixed or have a PR in the queue that will fix them 👍 (except for https://github.com/FMotalleb/nu_plugin_desktop_notifications but i'm sure the author will be able to fix it soon 😉) |
amtoine
added a commit
to amtoine/nu-git-manager
that referenced
this pull request
Jan 21, 2024
related to - nushell/nupm#51 ## description this PR renames the `package.nuon` files to `nupm.nuon` as per nushell/nupm#51.
amtoine
added a commit
to nushell/nu_scripts
that referenced
this pull request
Feb 18, 2024
related to - nushell/nupm#51 depends on - #700 > **Important** > this PR will be rebased once #700 lands and only a5a6b6f is relevant here ## description this is a simple rename of `package.nuon` files to `nupm.nuon` as per nushell/nupm#51.
maxim-uvarov
pushed a commit
to maxim-uvarov/nu_scripts_reduced_size
that referenced
this pull request
Oct 12, 2024
related to - nushell/nupm#51 depends on - nushell/nu_scripts#700 > **Important** > this PR will be rebased once #700 lands and only nushell/nu_scripts@a5a6b6f is relevant here ## description this is a simple rename of `package.nuon` files to `nupm.nuon` as per nushell/nupm#51.
maxim-uvarov
pushed a commit
to maxim-uvarov/nu_scripts_reduced_size
that referenced
this pull request
Oct 13, 2024
related to - nushell/nupm#51 depends on - nushell/nu_scripts#700 > **Important** > this PR will be rebased once #700 lands and only nushell/nu_scripts@a5a6b6f is relevant here ## description this is a simple rename of `package.nuon` files to `nupm.nuon` as per nushell/nupm#51.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
part of
inspired by
Cargo.toml
for RustDescription
this PR renames
package.nuon
intonupm.nuon
making it hopefully clearer what the purpose of this file will be in any Nupm package.