Skip to content

Commit 1385a2b

Browse files
authored
[devbox] Turn devbox into a go module (jetify-com#2515)
## Summary Turn devbox into a go module under `go.jetpack.io/devbox`. Note that this is not fully working with `bazel` but if we're off of it, that should be ok. ## How was it tested? `go test ./...` inside the `devbox` directory ## Is this change backwards-compatible? Yes
1 parent a52ba98 commit 1385a2b

File tree

21 files changed

+112
-24
lines changed

21 files changed

+112
-24
lines changed

BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@io_bazel_rules_go//go:def.bzl", "go_library")
2+
# gazelle:prefix go.jetpack.io/devbox
23

34
go_library(
45
name = "devbox",
@@ -13,7 +14,7 @@ go_library(
1314
"tmpl/Dockerfile.tmpl",
1415
"tmpl/.gitignore.tmpl",
1516
],
16-
importpath = "go.jetpack.io/axiom/opensource/devbox",
17+
importpath = "go.jetpack.io/devbox",
1718
visibility = ["//visibility:public"],
1819
deps = [
1920
"//opensource/devbox/cuecfg",

boxcli/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ go_library(
1313
"root.go",
1414
"shell.go",
1515
],
16-
importpath = "go.jetpack.io/axiom/opensource/devbox/boxcli",
16+
importpath = "go.jetpack.io/devbox/boxcli",
1717
visibility = ["//visibility:public"],
1818
deps = [
1919
"//opensource/devbox",

boxcli/add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package boxcli
66
import (
77
"github.com/pkg/errors"
88
"github.com/spf13/cobra"
9-
"go.jetpack.io/axiom/opensource/devbox"
9+
"go.jetpack.io/devbox"
1010
)
1111

1212
func AddCmd() *cobra.Command {

boxcli/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package boxcli
66
import (
77
"github.com/pkg/errors"
88
"github.com/spf13/cobra"
9-
"go.jetpack.io/axiom/opensource/devbox"
10-
"go.jetpack.io/axiom/opensource/devbox/docker"
9+
"go.jetpack.io/devbox"
10+
"go.jetpack.io/devbox/docker"
1111
)
1212

1313
func BuildCmd() *cobra.Command {

boxcli/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package boxcli
66
import (
77
"github.com/pkg/errors"
88
"github.com/spf13/cobra"
9-
"go.jetpack.io/axiom/opensource/devbox"
9+
"go.jetpack.io/devbox"
1010
)
1111

1212
func GenerateCmd() *cobra.Command {

boxcli/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package boxcli
66
import (
77
"github.com/pkg/errors"
88
"github.com/spf13/cobra"
9-
"go.jetpack.io/axiom/opensource/devbox"
9+
"go.jetpack.io/devbox"
1010
)
1111

1212
func InitCmd() *cobra.Command {

boxcli/plan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/pkg/errors"
1010
"github.com/spf13/cobra"
11-
"go.jetpack.io/axiom/opensource/devbox"
11+
"go.jetpack.io/devbox"
1212
)
1313

1414
func PlanCmd() *cobra.Command {

boxcli/rm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package boxcli
66
import (
77
"github.com/pkg/errors"
88
"github.com/spf13/cobra"
9-
"go.jetpack.io/axiom/opensource/devbox"
9+
"go.jetpack.io/devbox"
1010
)
1111

1212
func RemoveCmd() *cobra.Command {

boxcli/shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package boxcli
66
import (
77
"github.com/pkg/errors"
88
"github.com/spf13/cobra"
9-
"go.jetpack.io/axiom/opensource/devbox"
9+
"go.jetpack.io/devbox"
1010
)
1111

1212
func ShellCmd() *cobra.Command {

cmd/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
33
go_library(
44
name = "cmd_lib",
55
srcs = ["devbox.go"],
6-
importpath = "go.jetpack.io/axiom/opensource/devbox/cmd",
6+
importpath = "go.jetpack.io/devbox/cmd",
77
visibility = ["//visibility:private"],
88
deps = ["//opensource/devbox/boxcli"],
99
)

0 commit comments

Comments
 (0)