diff --git a/packages/orchestrator/pkg/sandbox/build/cache.go b/packages/orchestrator/pkg/sandbox/build/cache.go index d7142106a3..a3816dde32 100644 --- a/packages/orchestrator/pkg/sandbox/build/cache.go +++ b/packages/orchestrator/pkg/sandbox/build/cache.go @@ -18,9 +18,9 @@ import ( "golang.org/x/sys/unix" "github.com/e2b-dev/infra/packages/orchestrator/pkg/cfg" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/featureflags" "github.com/e2b-dev/infra/packages/shared/pkg/logger" + "github.com/e2b-dev/infra/packages/shared/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/utils" ) diff --git a/packages/orchestrator/pkg/sandbox/reboot.go b/packages/orchestrator/pkg/sandbox/reboot.go index 6b8527c7c0..74aa1eac25 100644 --- a/packages/orchestrator/pkg/sandbox/reboot.go +++ b/packages/orchestrator/pkg/sandbox/reboot.go @@ -14,10 +14,10 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/sandbox/fc" "github.com/e2b-dev/infra/packages/orchestrator/pkg/sandbox/template" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/constants" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/fc/models" "github.com/e2b-dev/infra/packages/shared/pkg/grpc/orchestrator" "github.com/e2b-dev/infra/packages/shared/pkg/storage/header" + "github.com/e2b-dev/infra/packages/shared/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/utils" ) diff --git a/packages/orchestrator/pkg/template/build/builder.go b/packages/orchestrator/pkg/template/build/builder.go index 534a6ce65d..9dcde75ee3 100644 --- a/packages/orchestrator/pkg/template/build/builder.go +++ b/packages/orchestrator/pkg/template/build/builder.go @@ -35,7 +35,6 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/phases/user" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/storage/cache" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/writer" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" artifactsregistry "github.com/e2b-dev/infra/packages/shared/pkg/artifacts-registry" "github.com/e2b-dev/infra/packages/shared/pkg/dockerhub" "github.com/e2b-dev/infra/packages/shared/pkg/featureflags" @@ -45,6 +44,7 @@ import ( "github.com/e2b-dev/infra/packages/shared/pkg/storage/header" "github.com/e2b-dev/infra/packages/shared/pkg/telemetry" "github.com/e2b-dev/infra/packages/shared/pkg/templates" + "github.com/e2b-dev/infra/packages/shared/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/utils" ) diff --git a/packages/orchestrator/pkg/template/build/core/filesystem/ext4.go b/packages/orchestrator/pkg/template/build/core/filesystem/ext4.go index 6afd447576..3910584daa 100644 --- a/packages/orchestrator/pkg/template/build/core/filesystem/ext4.go +++ b/packages/orchestrator/pkg/template/build/core/filesystem/ext4.go @@ -19,9 +19,9 @@ import ( "go.uber.org/zap" "golang.org/x/sys/unix" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/logger" "github.com/e2b-dev/infra/packages/shared/pkg/telemetry" + "github.com/e2b-dev/infra/packages/shared/pkg/units" ) var tracer = otel.Tracer("github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/core/filesystem") diff --git a/packages/orchestrator/pkg/template/build/core/oci/oci.go b/packages/orchestrator/pkg/template/build/core/oci/oci.go index 6dda98eb68..c273031640 100644 --- a/packages/orchestrator/pkg/template/build/core/oci/oci.go +++ b/packages/orchestrator/pkg/template/build/core/oci/oci.go @@ -26,11 +26,11 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/core/filesystem" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/core/oci/auth" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" artifactsregistry "github.com/e2b-dev/infra/packages/shared/pkg/artifacts-registry" "github.com/e2b-dev/infra/packages/shared/pkg/dockerhub" "github.com/e2b-dev/infra/packages/shared/pkg/logger" "github.com/e2b-dev/infra/packages/shared/pkg/telemetry" + "github.com/e2b-dev/infra/packages/shared/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/utils" ) diff --git a/packages/orchestrator/pkg/template/build/core/rootfs/rootfs.go b/packages/orchestrator/pkg/template/build/core/rootfs/rootfs.go index 7a9f909491..ca859899f0 100644 --- a/packages/orchestrator/pkg/template/build/core/rootfs/rootfs.go +++ b/packages/orchestrator/pkg/template/build/core/rootfs/rootfs.go @@ -26,13 +26,13 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/core/filesystem" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/core/oci" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/phases" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" artifactsregistry "github.com/e2b-dev/infra/packages/shared/pkg/artifacts-registry" "github.com/e2b-dev/infra/packages/shared/pkg/dockerhub" "github.com/e2b-dev/infra/packages/shared/pkg/featureflags" "github.com/e2b-dev/infra/packages/shared/pkg/logger" "github.com/e2b-dev/infra/packages/shared/pkg/storage" "github.com/e2b-dev/infra/packages/shared/pkg/telemetry" + "github.com/e2b-dev/infra/packages/shared/pkg/units" ) var tracer = otel.Tracer("github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/core/rootfs") diff --git a/packages/orchestrator/pkg/template/build/layer/create_sandbox.go b/packages/orchestrator/pkg/template/build/layer/create_sandbox.go index 0c0f012240..68844f3ceb 100644 --- a/packages/orchestrator/pkg/template/build/layer/create_sandbox.go +++ b/packages/orchestrator/pkg/template/build/layer/create_sandbox.go @@ -17,11 +17,11 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/config" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/core/filesystem" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/constants" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/env" "github.com/e2b-dev/infra/packages/shared/pkg/fc/models" "github.com/e2b-dev/infra/packages/shared/pkg/featureflags" "github.com/e2b-dev/infra/packages/shared/pkg/id" + "github.com/e2b-dev/infra/packages/shared/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/utils" ) diff --git a/packages/orchestrator/pkg/template/build/phases/base/files.go b/packages/orchestrator/pkg/template/build/phases/base/files.go index 5a7ae4554a..afced98712 100644 --- a/packages/orchestrator/pkg/template/build/phases/base/files.go +++ b/packages/orchestrator/pkg/template/build/phases/base/files.go @@ -15,11 +15,11 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/config" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/core/rootfs" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/phases" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" artifactsregistry "github.com/e2b-dev/infra/packages/shared/pkg/artifacts-registry" "github.com/e2b-dev/infra/packages/shared/pkg/dockerhub" "github.com/e2b-dev/infra/packages/shared/pkg/featureflags" "github.com/e2b-dev/infra/packages/shared/pkg/logger" + "github.com/e2b-dev/infra/packages/shared/pkg/units" ) func constructLayerFilesFromOCI( diff --git a/packages/orchestrator/pkg/template/build/phases/base/provision.go b/packages/orchestrator/pkg/template/build/phases/base/provision.go index 0923203332..1ece2e91c2 100644 --- a/packages/orchestrator/pkg/template/build/phases/base/provision.go +++ b/packages/orchestrator/pkg/template/build/phases/base/provision.go @@ -29,9 +29,9 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/layer" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/phases" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/build/writer" - "github.com/e2b-dev/infra/packages/orchestrator/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/logger" "github.com/e2b-dev/infra/packages/shared/pkg/telemetry" + "github.com/e2b-dev/infra/packages/shared/pkg/units" "github.com/e2b-dev/infra/packages/shared/pkg/utils" ) diff --git a/packages/orchestrator/pkg/units/units.go b/packages/shared/pkg/units/units.go similarity index 100% rename from packages/orchestrator/pkg/units/units.go rename to packages/shared/pkg/units/units.go