Skip to content

Commit 5a2ae81

Browse files
Move configs to pkg internal (#609)
* Refactor: Move config files to pkg/internal/configs Co-authored-by: robin.braemer <robin.braemer@web.de> * Refactor: Move config files to pkg/configs Co-authored-by: robin.braemer <robin.braemer@web.de> * Checkpoint before follow-up message Co-authored-by: robin.braemer <robin.braemer@web.de> * Checkpoint before follow-up message Co-authored-by: robin.braemer <robin.braemer@web.de> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 4ace975 commit 5a2ae81

9 files changed

Lines changed: 8 additions & 8 deletions

File tree

.web/docs/guide/config/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You can also create the `config.yml` file manually using any of the templates be
5353
```
5454
5555
```yaml [Minimal]
56-
<!--@include: ../../../../internal/configs/config-minimal.yml -->
56+
<!--@include: ../../../../pkg/configs/config-minimal.yml -->
5757
```
5858
5959
:::

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ all: fmt vet mod lint
22

33
# Sync embedded config files from root directory
44
sync-configs:
5-
cp config.yml internal/configs/config.yml
6-
cp config-simple.yml internal/configs/config-simple.yml
7-
cp config-lite.yml internal/configs/config-lite.yml
8-
cp config-bedrock.yml internal/configs/config-bedrock.yml
9-
# Note: config-minimal.yml is maintained directly in internal/configs, not synced from root
5+
cp config.yml pkg/configs/config.yml
6+
cp config-simple.yml pkg/configs/config-simple.yml
7+
cp config-lite.yml pkg/configs/config-lite.yml
8+
cp config-bedrock.yml pkg/configs/config-bedrock.yml
9+
# Note: config-minimal.yml is maintained directly in pkg/configs, not synced from root
1010

1111
# Build Gate with version information
1212
build: sync-configs

cmd/gate/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66

77
"github.com/urfave/cli/v2"
8-
"go.minekube.com/gate/internal/configs"
8+
"go.minekube.com/gate/pkg/configs"
99
)
1010

1111
func configCommand() *cli.Command {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package configs provides embedded default configuration files.
2-
// Run `go generate ./internal/configs` or `make sync-configs` to update the embedded configs from the root directory.
2+
// Run `go generate ./pkg/configs` or `make sync-configs` to update the embedded configs from the root directory.
33
package configs
44

55
//go:generate cp ../../config.yml config.yml

0 commit comments

Comments
 (0)