diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 347508a..654d850 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -14,21 +14,21 @@ jobs: include: - image: henrygd/beszel context: ./ - dockerfile: ./src/dockerfile_hub + dockerfile: ./internal/dockerfile_hub registry: docker.io username_secret: DOCKERHUB_USERNAME password_secret: DOCKERHUB_TOKEN - image: henrygd/beszel-agent context: ./ - dockerfile: ./src/dockerfile_agent + dockerfile: ./internal/dockerfile_agent registry: docker.io username_secret: DOCKERHUB_USERNAME password_secret: DOCKERHUB_TOKEN - image: henrygd/beszel-agent-nvidia context: ./ - dockerfile: ./src/dockerfile_agent_nvidia + dockerfile: ./internal/dockerfile_agent_nvidia platforms: linux/amd64 registry: docker.io username_secret: DOCKERHUB_USERNAME @@ -36,21 +36,21 @@ jobs: - image: ghcr.io/${{ github.repository }}/beszel context: ./ - dockerfile: ./src/dockerfile_hub + dockerfile: ./internal/dockerfile_hub registry: ghcr.io username: ${{ github.actor }} password_secret: GITHUB_TOKEN - image: ghcr.io/${{ github.repository }}/beszel-agent context: ./ - dockerfile: ./src/dockerfile_agent + dockerfile: ./internal/dockerfile_agent registry: ghcr.io username: ${{ github.actor }} password_secret: GITHUB_TOKEN - image: ghcr.io/${{ github.repository }}/beszel-agent-nvidia context: ./ - dockerfile: ./src/dockerfile_agent_nvidia + dockerfile: ./internal/dockerfile_agent_nvidia platforms: linux/amd64 registry: ghcr.io username: ${{ github.actor }} @@ -68,10 +68,10 @@ jobs: uses: oven-sh/setup-bun@v2 - name: Install dependencies - run: bun install --no-save --cwd ./src/site + run: bun install --no-save --cwd ./internal/site - name: Build site - run: bun run --cwd ./src/site build + run: bun run --cwd ./internal/site build - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f12c87..323cb76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,10 +21,10 @@ jobs: uses: oven-sh/setup-bun@v2 - name: Install dependencies - run: bun install --no-save --cwd ./src/site + run: bun install --no-save --cwd ./internal/site - name: Build site - run: bun run --cwd ./src/site build + run: bun run --cwd ./internal/site build - name: Set up Go uses: actions/setup-go@v5 diff --git a/.gitignore b/.gitignore index c21d34c..c9fdb81 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ node_modules build *timestamp* .swc -src/site/src/locales/**/*.ts +src/site/internal/locales/**/*.ts *.bak __debug_* agent/lhm/obj diff --git a/Makefile b/Makefile index 90c4999..5bcd480 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,11 @@ tidy: build-web-ui: @if command -v bun >/dev/null 2>&1; then \ - bun install --cwd ./src/site && \ - bun run --cwd ./src/site build; \ + bun install --cwd ./internal/site && \ + bun run --cwd ./internal/site build; \ else \ - npm install --prefix ./src/site && \ - npm run --prefix ./src/site build; \ + npm install --prefix ./internal/site && \ + npm run --prefix ./internal/site build; \ fi # Conditional .NET build - only for Windows @@ -48,45 +48,45 @@ build-dotnet-conditional: # Update build-agent to include conditional .NET build build-agent: tidy build-dotnet-conditional - GOOS=$(OS) GOARCH=$(ARCH) go build -o ./build/beszel-agent_$(OS)_$(ARCH)$(EXE_EXT) -ldflags "-w -s" ./src/cmd/agent + GOOS=$(OS) GOARCH=$(ARCH) go build -o ./build/beszel-agent_$(OS)_$(ARCH)$(EXE_EXT) -ldflags "-w -s" ./internal/cmd/agent build-hub: tidy $(if $(filter false,$(SKIP_WEB)),build-web-ui) - GOOS=$(OS) GOARCH=$(ARCH) go build -o ./build/beszel_$(OS)_$(ARCH)$(EXE_EXT) -ldflags "-w -s" ./src/cmd/hub + GOOS=$(OS) GOARCH=$(ARCH) go build -o ./build/beszel_$(OS)_$(ARCH)$(EXE_EXT) -ldflags "-w -s" ./internal/cmd/hub build-hub-dev: tidy - mkdir -p ./src/site/dist && touch ./src/site/dist/index.html - GOOS=$(OS) GOARCH=$(ARCH) go build -tags development -o ./build/beszel-dev_$(OS)_$(ARCH)$(EXE_EXT) -ldflags "-w -s" ./src/cmd/hub + mkdir -p ./internal/site/dist && touch ./internal/site/dist/index.html + GOOS=$(OS) GOARCH=$(ARCH) go build -tags development -o ./build/beszel-dev_$(OS)_$(ARCH)$(EXE_EXT) -ldflags "-w -s" ./internal/cmd/hub build: build-agent build-hub generate-locales: - @if [ ! -f ./src/site/src/locales/en/en.ts ]; then \ + @if [ ! -f ./internal/site/internal/locales/en/en.ts ]; then \ echo "Generating locales..."; \ - command -v bun >/dev/null 2>&1 && cd ./src/site && bun install && bun run sync || cd ./src/site && npm install && npm run sync; \ + command -v bun >/dev/null 2>&1 && cd ./internal/site && bun install && bun run sync || cd ./internal/site && npm install && npm run sync; \ fi dev-server: generate-locales - cd ./src/site + cd ./internal/site @if command -v bun >/dev/null 2>&1; then \ - cd ./src/site && bun run dev --host 0.0.0.0; \ + cd ./internal/site && bun run dev --host 0.0.0.0; \ else \ - cd ./src/site && npm run dev --host 0.0.0.0; \ + cd ./internal/site && npm run dev --host 0.0.0.0; \ fi dev-hub: export ENV=dev dev-hub: - mkdir -p ./src/site/dist && touch ./src/site/dist/index.html + mkdir -p ./internal/site/dist && touch ./internal/site/dist/index.html @if command -v entr >/dev/null 2>&1; then \ - find ./src/cmd/hub/*.go ./src/{alerts,hub,records,users}/*.go | entr -r -s "cd ./src/cmd/hub && go run -tags development . serve --http 0.0.0.0:8090"; \ + find ./internal/cmd/hub/*.go ./internal/{alerts,hub,records,users}/*.go | entr -r -s "cd ./internal/cmd/hub && go run -tags development . serve --http 0.0.0.0:8090"; \ else \ - cd ./src/cmd/hub && go run -tags development . serve --http 0.0.0.0:8090; \ + cd ./internal/cmd/hub && go run -tags development . serve --http 0.0.0.0:8090; \ fi dev-agent: @if command -v entr >/dev/null 2>&1; then \ - find ./src/cmd/agent/*.go ./agent/*.go | entr -r go run github.com/henrygd/beszel/src/cmd/agent; \ + find ./internal/cmd/agent/*.go ./agent/*.go | entr -r go run github.com/henrygd/beszel/internal/cmd/agent; \ else \ - go run github.com/henrygd/beszel/src/cmd/agent; \ + go run github.com/henrygd/beszel/internal/cmd/agent; \ fi build-dotnet: diff --git a/agent/agent.go b/agent/agent.go index 41dfeb9..4b65ff5 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -13,7 +13,7 @@ import ( "github.com/gliderlabs/ssh" "github.com/henrygd/beszel" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/shirou/gopsutil/v4/host" gossh "golang.org/x/crypto/ssh" ) diff --git a/agent/agent_cache.go b/agent/agent_cache.go index e02c260..7425cd0 100644 --- a/agent/agent_cache.go +++ b/agent/agent_cache.go @@ -3,7 +3,7 @@ package agent import ( "time" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" ) // Not thread safe since we only access from gatherStats which is already locked diff --git a/agent/agent_cache_test.go b/agent/agent_cache_test.go index 260c69f..87984c9 100644 --- a/agent/agent_cache_test.go +++ b/agent/agent_cache_test.go @@ -8,7 +8,7 @@ import ( "testing/synctest" "time" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/agent/client.go b/agent/client.go index 678fe5d..19933c1 100644 --- a/agent/client.go +++ b/agent/client.go @@ -14,7 +14,7 @@ import ( "time" "github.com/henrygd/beszel" - "github.com/henrygd/beszel/src/common" + "github.com/henrygd/beszel/internal/common" "github.com/fxamacker/cbor/v2" "github.com/lxzan/gws" diff --git a/agent/client_test.go b/agent/client_test.go index e2f840e..2edc203 100644 --- a/agent/client_test.go +++ b/agent/client_test.go @@ -13,7 +13,7 @@ import ( "github.com/henrygd/beszel" - "github.com/henrygd/beszel/src/common" + "github.com/henrygd/beszel/internal/common" "github.com/fxamacker/cbor/v2" "github.com/stretchr/testify/assert" diff --git a/agent/disk.go b/agent/disk.go index e4ac000..0b64ec2 100644 --- a/agent/disk.go +++ b/agent/disk.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/shirou/gopsutil/v4/disk" ) diff --git a/agent/docker.go b/agent/docker.go index e60d7c0..1b941a2 100644 --- a/agent/docker.go +++ b/agent/docker.go @@ -14,7 +14,7 @@ import ( "sync" "time" - "github.com/henrygd/beszel/src/entities/container" + "github.com/henrygd/beszel/internal/entities/container" "github.com/blang/semver" ) diff --git a/agent/gpu.go b/agent/gpu.go index d6fddc6..5ba70ad 100644 --- a/agent/gpu.go +++ b/agent/gpu.go @@ -12,7 +12,7 @@ import ( "sync" "time" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "golang.org/x/exp/slog" ) diff --git a/agent/gpu_test.go b/agent/gpu_test.go index d68794a..6bf070e 100644 --- a/agent/gpu_test.go +++ b/agent/gpu_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/agent/sensors.go b/agent/sensors.go index 6bb71b8..22b8e5a 100644 --- a/agent/sensors.go +++ b/agent/sensors.go @@ -10,7 +10,7 @@ import ( "strings" "unicode/utf8" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/shirou/gopsutil/v4/common" "github.com/shirou/gopsutil/v4/sensors" diff --git a/agent/sensors_test.go b/agent/sensors_test.go index 37d94d7..e1e6795 100644 --- a/agent/sensors_test.go +++ b/agent/sensors_test.go @@ -9,7 +9,7 @@ import ( "os" "testing" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/shirou/gopsutil/v4/common" "github.com/shirou/gopsutil/v4/sensors" diff --git a/agent/server.go b/agent/server.go index c654f7f..58ac9a8 100644 --- a/agent/server.go +++ b/agent/server.go @@ -12,8 +12,8 @@ import ( "time" "github.com/henrygd/beszel" - "github.com/henrygd/beszel/src/common" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/common" + "github.com/henrygd/beszel/internal/entities/system" "github.com/blang/semver" "github.com/fxamacker/cbor/v2" diff --git a/agent/server_test.go b/agent/server_test.go index b2a0fc6..bfee84e 100644 --- a/agent/server_test.go +++ b/agent/server_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "github.com/henrygd/beszel/src/entities/container" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/container" + "github.com/henrygd/beszel/internal/entities/system" "github.com/blang/semver" "github.com/fxamacker/cbor/v2" diff --git a/agent/system.go b/agent/system.go index 8cbd679..d3a7610 100644 --- a/agent/system.go +++ b/agent/system.go @@ -11,7 +11,7 @@ import ( "github.com/henrygd/beszel" "github.com/henrygd/beszel/agent/battery" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/shirou/gopsutil/v4/cpu" "github.com/shirou/gopsutil/v4/disk" diff --git a/agent/update.go b/agent/update.go index 2be7b43..72e05a3 100644 --- a/agent/update.go +++ b/agent/update.go @@ -8,7 +8,7 @@ import ( "runtime" "strings" - "github.com/henrygd/beszel/src/ghupdate" + "github.com/henrygd/beszel/internal/ghupdate" ) // restarter knows how to restart the beszel-agent service. diff --git a/internal/alerts/alerts_system.go b/internal/alerts/alerts_system.go index e42ab01..c554a36 100644 --- a/internal/alerts/alerts_system.go +++ b/internal/alerts/alerts_system.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/pocketbase/dbx" "github.com/pocketbase/pocketbase/core" diff --git a/internal/alerts/alerts_test.go b/internal/alerts/alerts_test.go index 9ba2492..d14722f 100644 --- a/internal/alerts/alerts_test.go +++ b/internal/alerts/alerts_test.go @@ -13,7 +13,7 @@ import ( "testing/synctest" "time" - beszelTests "github.com/henrygd/beszel/src/tests" + beszelTests "github.com/henrygd/beszel/internal/tests" "github.com/pocketbase/dbx" "github.com/pocketbase/pocketbase/core" diff --git a/internal/cmd/hub/hub.go b/internal/cmd/hub/hub.go index 300be24..0b0866d 100644 --- a/internal/cmd/hub/hub.go +++ b/internal/cmd/hub/hub.go @@ -8,8 +8,8 @@ import ( "time" "github.com/henrygd/beszel" - "github.com/henrygd/beszel/src/hub" - _ "github.com/henrygd/beszel/src/migrations" + "github.com/henrygd/beszel/internal/hub" + _ "github.com/henrygd/beszel/internal/migrations" "github.com/pocketbase/pocketbase" "github.com/pocketbase/pocketbase/plugins/migratecmd" diff --git a/internal/dockerfile_agent b/internal/dockerfile_agent index 185a2cc..476be1f 100644 --- a/internal/dockerfile_agent +++ b/internal/dockerfile_agent @@ -10,7 +10,7 @@ COPY . ./ # Build ARG TARGETOS TARGETARCH -RUN CGO_ENABLED=0 GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /agent ./src/cmd/agent +RUN CGO_ENABLED=0 GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /agent ./internal/cmd/agent RUN rm -rf /tmp/* diff --git a/internal/dockerfile_hub b/internal/dockerfile_hub index 34f3e0d..3ea61d5 100644 --- a/internal/dockerfile_hub +++ b/internal/dockerfile_hub @@ -17,7 +17,7 @@ RUN update-ca-certificates # Build ARG TARGETOS TARGETARCH -RUN CGO_ENABLED=0 GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /beszel ./src/cmd/hub +RUN CGO_ENABLED=0 GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /beszel ./internal/cmd/hub # ? ------------------------- FROM scratch diff --git a/internal/entities/system/system.go b/internal/entities/system/system.go index ff41745..3e81e62 100644 --- a/internal/entities/system/system.go +++ b/internal/entities/system/system.go @@ -5,7 +5,7 @@ package system import ( "time" - "github.com/henrygd/beszel/src/entities/container" + "github.com/henrygd/beszel/internal/entities/container" ) type Stats struct { diff --git a/internal/hub/agent_connect.go b/internal/hub/agent_connect.go index 8623477..25e8c88 100644 --- a/internal/hub/agent_connect.go +++ b/internal/hub/agent_connect.go @@ -8,9 +8,9 @@ import ( "sync" "time" - "github.com/henrygd/beszel/src/common" - "github.com/henrygd/beszel/src/hub/expirymap" - "github.com/henrygd/beszel/src/hub/ws" + "github.com/henrygd/beszel/internal/common" + "github.com/henrygd/beszel/internal/hub/expirymap" + "github.com/henrygd/beszel/internal/hub/ws" "github.com/blang/semver" "github.com/lxzan/gws" diff --git a/internal/hub/agent_connect_test.go b/internal/hub/agent_connect_test.go index 2a4f548..c114e4c 100644 --- a/internal/hub/agent_connect_test.go +++ b/internal/hub/agent_connect_test.go @@ -15,8 +15,8 @@ import ( "time" "github.com/henrygd/beszel/agent" - "github.com/henrygd/beszel/src/common" - "github.com/henrygd/beszel/src/hub/ws" + "github.com/henrygd/beszel/internal/common" + "github.com/henrygd/beszel/internal/hub/ws" "github.com/pocketbase/pocketbase/core" pbtests "github.com/pocketbase/pocketbase/tests" diff --git a/internal/hub/config/config.go b/internal/hub/config/config.go index 9383043..18cb640 100644 --- a/internal/hub/config/config.go +++ b/internal/hub/config/config.go @@ -8,7 +8,7 @@ import ( "path/filepath" "github.com/google/uuid" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/pocketbase/dbx" "github.com/pocketbase/pocketbase/core" diff --git a/internal/hub/config/config_test.go b/internal/hub/config/config_test.go index 6aa3b4e..b04eead 100644 --- a/internal/hub/config/config_test.go +++ b/internal/hub/config/config_test.go @@ -8,9 +8,9 @@ import ( "path/filepath" "testing" - "github.com/henrygd/beszel/src/tests" + "github.com/henrygd/beszel/internal/tests" - "github.com/henrygd/beszel/src/hub/config" + "github.com/henrygd/beszel/internal/hub/config" "github.com/pocketbase/pocketbase/core" "github.com/stretchr/testify/assert" diff --git a/internal/hub/hub.go b/internal/hub/hub.go index 6aab3d9..0d93ea2 100644 --- a/internal/hub/hub.go +++ b/internal/hub/hub.go @@ -13,11 +13,11 @@ import ( "time" "github.com/henrygd/beszel" - "github.com/henrygd/beszel/src/alerts" - "github.com/henrygd/beszel/src/hub/config" - "github.com/henrygd/beszel/src/hub/systems" - "github.com/henrygd/beszel/src/records" - "github.com/henrygd/beszel/src/users" + "github.com/henrygd/beszel/internal/alerts" + "github.com/henrygd/beszel/internal/hub/config" + "github.com/henrygd/beszel/internal/hub/systems" + "github.com/henrygd/beszel/internal/records" + "github.com/henrygd/beszel/internal/users" "github.com/google/uuid" "github.com/pocketbase/pocketbase" diff --git a/internal/hub/hub_test.go b/internal/hub/hub_test.go index ea91ebe..ea8febb 100644 --- a/internal/hub/hub_test.go +++ b/internal/hub/hub_test.go @@ -15,8 +15,8 @@ import ( "strings" "testing" - "github.com/henrygd/beszel/src/migrations" - beszelTests "github.com/henrygd/beszel/src/tests" + "github.com/henrygd/beszel/internal/migrations" + beszelTests "github.com/henrygd/beszel/internal/tests" "github.com/pocketbase/pocketbase/core" pbTests "github.com/pocketbase/pocketbase/tests" diff --git a/internal/hub/hub_test_helpers.go b/internal/hub/hub_test_helpers.go index a4bf42c..2171c88 100644 --- a/internal/hub/hub_test_helpers.go +++ b/internal/hub/hub_test_helpers.go @@ -3,7 +3,7 @@ package hub -import "github.com/henrygd/beszel/src/hub/systems" +import "github.com/henrygd/beszel/internal/hub/systems" // TESTING ONLY: GetSystemManager returns the system manager func (h *Hub) GetSystemManager() *systems.SystemManager { diff --git a/internal/hub/server_production.go b/internal/hub/server_production.go index 2f5eac2..59ca52a 100644 --- a/internal/hub/server_production.go +++ b/internal/hub/server_production.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/henrygd/beszel" - "github.com/henrygd/beszel/src/site" + "github.com/henrygd/beszel/internal/site" "github.com/pocketbase/pocketbase/apis" "github.com/pocketbase/pocketbase/core" diff --git a/internal/hub/systems/system.go b/internal/hub/systems/system.go index 54532e3..03c6a55 100644 --- a/internal/hub/systems/system.go +++ b/internal/hub/systems/system.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "github.com/henrygd/beszel/src/hub/ws" + "github.com/henrygd/beszel/internal/hub/ws" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" "github.com/henrygd/beszel" diff --git a/internal/hub/systems/system_manager.go b/internal/hub/systems/system_manager.go index a7d70aa..4211a03 100644 --- a/internal/hub/systems/system_manager.go +++ b/internal/hub/systems/system_manager.go @@ -5,11 +5,11 @@ import ( "fmt" "time" - "github.com/henrygd/beszel/src/hub/ws" + "github.com/henrygd/beszel/internal/hub/ws" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" - "github.com/henrygd/beszel/src/common" + "github.com/henrygd/beszel/internal/common" "github.com/henrygd/beszel" diff --git a/internal/hub/systems/systems_test.go b/internal/hub/systems/systems_test.go index b2e9e3f..5f362b2 100644 --- a/internal/hub/systems/systems_test.go +++ b/internal/hub/systems/systems_test.go @@ -10,10 +10,10 @@ import ( "testing/synctest" "time" - "github.com/henrygd/beszel/src/entities/container" - "github.com/henrygd/beszel/src/entities/system" - "github.com/henrygd/beszel/src/hub/systems" - "github.com/henrygd/beszel/src/tests" + "github.com/henrygd/beszel/internal/entities/container" + "github.com/henrygd/beszel/internal/entities/system" + "github.com/henrygd/beszel/internal/hub/systems" + "github.com/henrygd/beszel/internal/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/hub/systems/systems_test_helpers.go b/internal/hub/systems/systems_test_helpers.go index 6c6bed0..b49d836 100644 --- a/internal/hub/systems/systems_test_helpers.go +++ b/internal/hub/systems/systems_test_helpers.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - entities "github.com/henrygd/beszel/src/entities/system" + entities "github.com/henrygd/beszel/internal/entities/system" ) // TESTING ONLY: GetSystemCount returns the number of systems in the store diff --git a/internal/hub/update.go b/internal/hub/update.go index 450ac25..cf16ff1 100644 --- a/internal/hub/update.go +++ b/internal/hub/update.go @@ -6,7 +6,7 @@ import ( "os" "os/exec" - "github.com/henrygd/beszel/src/ghupdate" + "github.com/henrygd/beszel/internal/ghupdate" "github.com/spf13/cobra" ) diff --git a/internal/hub/ws/ws.go b/internal/hub/ws/ws.go index e965a86c..412bee1 100644 --- a/internal/hub/ws/ws.go +++ b/internal/hub/ws/ws.go @@ -5,9 +5,9 @@ import ( "time" "weak" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/system" - "github.com/henrygd/beszel/src/common" + "github.com/henrygd/beszel/internal/common" "github.com/fxamacker/cbor/v2" "github.com/lxzan/gws" diff --git a/internal/hub/ws/ws_test.go b/internal/hub/ws/ws_test.go index 2379038..c6a74c3 100644 --- a/internal/hub/ws/ws_test.go +++ b/internal/hub/ws/ws_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/henrygd/beszel/src/common" + "github.com/henrygd/beszel/internal/common" "github.com/fxamacker/cbor/v2" "github.com/stretchr/testify/assert" diff --git a/internal/records/records.go b/internal/records/records.go index 0637ec8..03f1491 100644 --- a/internal/records/records.go +++ b/internal/records/records.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "github.com/henrygd/beszel/src/entities/container" - "github.com/henrygd/beszel/src/entities/system" + "github.com/henrygd/beszel/internal/entities/container" + "github.com/henrygd/beszel/internal/entities/system" "github.com/pocketbase/dbx" "github.com/pocketbase/pocketbase/core" diff --git a/internal/records/records_test.go b/internal/records/records_test.go index c16a5ed..b4056a3 100644 --- a/internal/records/records_test.go +++ b/internal/records/records_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/henrygd/beszel/src/records" - "github.com/henrygd/beszel/src/tests" + "github.com/henrygd/beszel/internal/records" + "github.com/henrygd/beszel/internal/tests" "github.com/pocketbase/dbx" "github.com/pocketbase/pocketbase/core" diff --git a/internal/tests/hub.go b/internal/tests/hub.go index f61e6a0..a4b8c17 100644 --- a/internal/tests/hub.go +++ b/internal/tests/hub.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/henrygd/beszel/src/hub" + "github.com/henrygd/beszel/internal/hub" "github.com/pocketbase/pocketbase/core" "github.com/pocketbase/pocketbase/tests" diff --git a/internal/users/users.go b/internal/users/users.go index 40a8a79..9807d0f 100644 --- a/internal/users/users.go +++ b/internal/users/users.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/henrygd/beszel/src/migrations" + "github.com/henrygd/beszel/internal/migrations" "github.com/pocketbase/dbx" "github.com/pocketbase/pocketbase/core"