Move internal packages to internal subdirectory
So they can't be imported from external repositories. I'm not giving any stability guarantees on anything except the CLI.
This commit is contained in:
parent
9a14682b8b
commit
86ee592eb2
6 changed files with 5 additions and 5 deletions
|
@ -7,8 +7,8 @@ import (
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
generate "github.com/tweag/gomod2nix/generate"
|
generate "github.com/tweag/gomod2nix/internal/generate"
|
||||||
schema "github.com/tweag/gomod2nix/schema"
|
schema "github.com/tweag/gomod2nix/internal/schema"
|
||||||
)
|
)
|
||||||
|
|
||||||
const directoryDefault = "./"
|
const directoryDefault = "./"
|
|
@ -17,8 +17,8 @@ import (
|
||||||
|
|
||||||
"github.com/nix-community/go-nix/pkg/nar"
|
"github.com/nix-community/go-nix/pkg/nar"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/tweag/gomod2nix/lib"
|
"github.com/tweag/gomod2nix/internal/lib"
|
||||||
schema "github.com/tweag/gomod2nix/schema"
|
schema "github.com/tweag/gomod2nix/internal/schema"
|
||||||
"golang.org/x/mod/modfile"
|
"golang.org/x/mod/modfile"
|
||||||
)
|
)
|
||||||
|
|
2
main.go
2
main.go
|
@ -1,6 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "github.com/tweag/gomod2nix/cmd"
|
import "github.com/tweag/gomod2nix/internal/cmd"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cmd.Execute()
|
cmd.Execute()
|
||||||
|
|
Loading…
Reference in a new issue