Skip to content

Commit

Permalink
pkg/mods/{readlinebinding -> readline-binding}.
Browse files Browse the repository at this point in the history
We now assume that the directory name under pkg/mods match exactly with the
Elvish module name in several places, and this mismatch broke website building.

Go allows dashes in directory names; it just forbids them in the package name
and there's actually no requirement that the directory name and the package name
be the same.
  • Loading branch information
xiaq committed Jan 9, 2024
1 parent d7b6600 commit 8d8e5ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/mods/mods.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"src.elv.sh/pkg/mods/path"
"src.elv.sh/pkg/mods/platform"
"src.elv.sh/pkg/mods/re"
"src.elv.sh/pkg/mods/readlinebinding"
readline_binding "src.elv.sh/pkg/mods/readline-binding"
"src.elv.sh/pkg/mods/runtime"
"src.elv.sh/pkg/mods/str"
"src.elv.sh/pkg/mods/unix"
Expand All @@ -37,5 +37,5 @@ func AddTo(ev *eval.Evaler) {
ev.AddModule("unix", unix.Ns)
}
ev.BundledModules["epm"] = epm.Code
ev.BundledModules["readline-binding"] = readlinebinding.Code
ev.BundledModules["readline-binding"] = readline_binding.Code
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package readlinebinding
package readline_binding

import _ "embed"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package readlinebinding_test
package readline_binding_test

import (
"os"
Expand Down

0 comments on commit 8d8e5ae

Please sign in to comment.