Skip to content

Commit fc8ce35

Browse files
committed
refactor: modules in src dir
1 parent f121c9c commit fc8ce35

10 files changed

Lines changed: 6 additions & 33 deletions

File tree

justfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ root_dir := `git rev-parse --show-toplevel`
55
flake_dir := root_dir / "tools/nix"
66
output_dir := root_dir / ".output"
77
build_dir := output_dir / "build"
8-
go_modules := "scripts/init otlp-openmeter-bridge"
8+
go_modules := "src/init src/otlp-openmeter-bridge"
99

1010
# Manage nix environment.
1111
[group('modules')]
@@ -52,8 +52,11 @@ lint:
5252
build *args:
5353
#!/usr/bin/env bash
5454
set -eu
55-
cd "{{root_dir}}"
56-
for d in {{go_modules}}; do (cd "$d" && go build -o "{{build_dir}}/$(basename "$d")" ./...); done
55+
for d in {{go_modules}}; do
56+
cd "{{root_dir}}/$d"
57+
echo "building $d"
58+
go build -v -o "{{build_dir}}/$(basename "$d")" ./...
59+
done
5760
5861
# Clean up generated files.
5962
[group('general')]

scripts/kube.config

Lines changed: 0 additions & 30 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)