diff --git a/cmd/root.go b/internal/cmd/root.go similarity index 96% rename from cmd/root.go rename to internal/cmd/root.go index da04664..b3e478f 100644 --- a/cmd/root.go +++ b/internal/cmd/root.go @@ -7,8 +7,8 @@ import ( log "github.com/sirupsen/logrus" "github.com/spf13/cobra" - generate "github.com/tweag/gomod2nix/generate" - schema "github.com/tweag/gomod2nix/schema" + generate "github.com/tweag/gomod2nix/internal/generate" + schema "github.com/tweag/gomod2nix/internal/schema" ) const directoryDefault = "./" diff --git a/generate/generate.go b/internal/generate/generate.go similarity index 97% rename from generate/generate.go rename to internal/generate/generate.go index acdeed5..2d8a9fa 100644 --- a/generate/generate.go +++ b/internal/generate/generate.go @@ -17,8 +17,8 @@ import ( "github.com/nix-community/go-nix/pkg/nar" log "github.com/sirupsen/logrus" - "github.com/tweag/gomod2nix/lib" - schema "github.com/tweag/gomod2nix/schema" + "github.com/tweag/gomod2nix/internal/lib" + schema "github.com/tweag/gomod2nix/internal/schema" "golang.org/x/mod/modfile" ) diff --git a/generate/temp.go b/internal/generate/temp.go similarity index 100% rename from generate/temp.go rename to internal/generate/temp.go diff --git a/lib/executor.go b/internal/lib/executor.go similarity index 100% rename from lib/executor.go rename to internal/lib/executor.go diff --git a/schema/schema.go b/internal/schema/schema.go similarity index 100% rename from schema/schema.go rename to internal/schema/schema.go diff --git a/main.go b/main.go index c9e13a9..23ae96a 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "github.com/tweag/gomod2nix/cmd" +import "github.com/tweag/gomod2nix/internal/cmd" func main() { cmd.Execute()