From 97de746a7d69f88cce7ebe151c8b3cff0494e4c4 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 7 Apr 2025 15:35:18 +0300 Subject: [PATCH] Move go code to src/ subdirectory --- Makefile | 2 +- go.mod => src/go.mod | 0 go.sum => src/go.sum | 0 main.go => src/main.go | 0 {utils => src/utils}/config.go | 0 {utils => src/utils}/extract_utils.go | 0 {utils => src/utils}/general_utils.go | 0 {utils => src/utils}/hooks.go | 0 {utils => src/utils}/operations.go | 0 {utils => src/utils}/package_utils.go | 0 {utils => src/utils}/repo_utils.go | 0 11 files changed, 1 insertion(+), 1 deletion(-) rename go.mod => src/go.mod (100%) rename go.sum => src/go.sum (100%) rename main.go => src/main.go (100%) rename {utils => src/utils}/config.go (100%) rename {utils => src/utils}/extract_utils.go (100%) rename {utils => src/utils}/general_utils.go (100%) rename {utils => src/utils}/hooks.go (100%) rename {utils => src/utils}/operations.go (100%) rename {utils => src/utils}/package_utils.go (100%) rename {utils => src/utils}/repo_utils.go (100%) diff --git a/Makefile b/Makefile index ab65f36..c6ef16e 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ endif build: mkdir -p build - $(GO) build -ldflags "-w" -o build/bpm gitlab.com/bubble-package-manager/bpm + cd src; $(GO) build -ldflags "-w" -o ../build/bpm gitlab.com/bubble-package-manager/bpm install: build/bpm config/ mkdir -p $(DESTDIR)$(BINDIR) diff --git a/go.mod b/src/go.mod similarity index 100% rename from go.mod rename to src/go.mod diff --git a/go.sum b/src/go.sum similarity index 100% rename from go.sum rename to src/go.sum diff --git a/main.go b/src/main.go similarity index 100% rename from main.go rename to src/main.go diff --git a/utils/config.go b/src/utils/config.go similarity index 100% rename from utils/config.go rename to src/utils/config.go diff --git a/utils/extract_utils.go b/src/utils/extract_utils.go similarity index 100% rename from utils/extract_utils.go rename to src/utils/extract_utils.go diff --git a/utils/general_utils.go b/src/utils/general_utils.go similarity index 100% rename from utils/general_utils.go rename to src/utils/general_utils.go diff --git a/utils/hooks.go b/src/utils/hooks.go similarity index 100% rename from utils/hooks.go rename to src/utils/hooks.go diff --git a/utils/operations.go b/src/utils/operations.go similarity index 100% rename from utils/operations.go rename to src/utils/operations.go diff --git a/utils/package_utils.go b/src/utils/package_utils.go similarity index 100% rename from utils/package_utils.go rename to src/utils/package_utils.go diff --git a/utils/repo_utils.go b/src/utils/repo_utils.go similarity index 100% rename from utils/repo_utils.go rename to src/utils/repo_utils.go