Skip to content

Commit a39fcce

Browse files
authored
Fix parsing errors for nushell nightly (#112)
## Description > Fixes the invalid type signature that is now caught by [nushell/nushell#14510](nushell/nushell#14510)
1 parent c968482 commit a39fcce

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

nupm/publish.nu

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export def main [
176176
}
177177
}
178178

179-
def guess-url [] -> string {
179+
def guess-url []: nothing -> string {
180180
mut url = (do -i { ^git remote get-url origin | complete } | get stdout)
181181

182182
if ($url | is-empty) {
@@ -191,7 +191,7 @@ def guess-url [] -> string {
191191
$url | str trim
192192
}
193193

194-
def guess-revision [] -> string {
194+
def guess-revision []: nothing -> string {
195195
mut revision = (do -i { ^git describe --tags --abbrev=0 | complete }
196196
| get stdout)
197197

nupm/status.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use utils/package.nu [open-package-file list-package-files]
55
# Display status of a package
66
export def main [
77
path?: path # path to the package
8-
] -> record<filename: string> {
8+
]: nothing -> record<filename: string> {
99
let path = $path | default $env.PWD | path expand
1010

1111
let pkg = open-package-file $path

nupm/utils/package.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export def open-package-file [dir: path] {
3333
# Lists files of a package
3434
#
3535
# This will be useful for file integrity checks
36-
export def list-package-files [pkg_dir: path, pkg: record] -> list<path> {
36+
export def list-package-files [pkg_dir: path, pkg: record]: nothing -> list<path> {
3737
let activation = match $pkg.type {
3838
'module' => $'use ($pkg.name)'
3939
'script' => {

nupm/utils/registry.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export def search-package [
1515
package: string # Name of the package
1616
--registry: string # Which registry to use (name or path)
1717
--exact-match # Searched package name must match exactly
18-
] -> table {
18+
]: nothing -> table {
1919
let registries = if (not ($registry | is-empty)) and ($registry in $env.NUPM_REGISTRIES) {
2020
# If $registry is a valid column in $env.NUPM_REGISTRIES, use that
2121
{ $registry : ($env.NUPM_REGISTRIES | get $registry) }

0 commit comments

Comments
 (0)