Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.26.6"
cache: true

- name: build release artifacts
Expand Down
8 changes: 4 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ until tests are added. `make all` runs `lint test build` in sequence.
Building directly without make:

```bash
go build -o bin/eds .
go run . <command>
go build -o bin/eds ./cmd/eds
go run ./cmd/eds <command>
```

Version is injected at build time via `-ldflags "-X main.version=..."` (see
Expand All @@ -51,7 +51,7 @@ module path is `github.com/cloud-ru/evolution-devservices-cli`, matching the
repo's actual GitHub location — unlike the earlier `evo` rebrand (which kept
the pre-rename module path as a cosmetic-only, minimal-diff change), this
rename moved the repo itself to a new GitHub org/name, so `go install
github.com/cloud-ru/evolution-devservices-cli@latest` needs the module path
github.com/cloud-ru/evolution-devservices-cli/cmd/eds@latest` needs the module path
to match. The internal `Config` struct field names and JSON keys still keep
their older spelling (see the `internal/config/config.go` entry below) —
that part of the prior minimal-diff choice still applies, since those are
Expand All @@ -63,7 +63,7 @@ Cobra-based CLI, one command per file under `cmd/`, thin API client under
`internal/repoapi/` (Repo product) and generated OpenAPI client under
`internal/workflow_client/` (Workflow Studio).

- `main.go` — entry point, wires `main.version` (ldflags) into `cmd.SetVersion`.
- `cmd/eds/main.go` — entry point, wires `main.version` (ldflags) into `cmd.SetVersion`.
- `cmd/root.go` — builds the root `eds` command, registers global persistent
flags. Product-scoped: `--repo-api-url`, `--repo-git-host`
(Repo product); `--wf-api-url` (Workflow Studio). Platform-level (shared,
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ build:
@mkdir -p $(BUILD_DIR)
CGO_ENABLED=$(CGO_ENABLED) go build $(GOFLAGS) \
-trimpath -ldflags '$(LDFLAGS)' \
-o $(BUILD_DIR)/$(BINARY) .
-o $(BUILD_DIR)/$(BINARY) ./cmd/eds
@echo "Built $(BUILD_DIR)/$(BINARY) (version=$(VERSION))"

# Helper target - invoke recursively for each os/arch combination.
Expand All @@ -64,7 +64,7 @@ build-one:
$(eval EXE := $(if $(filter windows,$(GOOS)),.exe,))
CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) \
go build $(GOFLAGS) -trimpath -ldflags '$(LDFLAGS)' \
-o $(DIST_DIR)/$(BINARY)-$(GOOS)-$(GOARCH)$(EXE) .
-o $(DIST_DIR)/$(BINARY)-$(GOOS)-$(GOARCH)$(EXE) ./cmd/eds
@echo " ✔ $(DIST_DIR)/$(BINARY)-$(GOOS)-$(GOARCH)$(EXE)"

.PHONY: build-all
Expand Down Expand Up @@ -148,7 +148,7 @@ upload-latest:
.PHONY: install
install:
CGO_ENABLED=$(CGO_ENABLED) go install $(GOFLAGS) \
-trimpath -ldflags '$(LDFLAGS)' $(PKG)
-trimpath -ldflags '$(LDFLAGS)' $(PKG)/cmd/eds

.PHONY: test
test:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ chmod +x eds && sudo mv eds /usr/local/bin/eds
```bash
git clone git@github.com:cloud-ru/evolution-devservices-cli.git
cd evolution-devservices-cli
go install github.com/cloud-ru/evolution-devservices-cli@latest
go install github.com/cloud-ru/evolution-devservices-cli/cmd/eds@latest
# or
make build # ./bin/eds
make build-all # cross-compile darwin/linux × amd64/arm64 into ./dist/
Expand Down Expand Up @@ -293,9 +293,9 @@ make help # list targets
Project layout:

```
main.go # entry point + ldflags-driven version
cmd/
root.go # cobra root command (`eds`) + global flags
eds/main.go # entry point + ldflags-driven version
root.go # cobra root command (`eds`) + global flags
helpers.go # config resolution, runtime context
login.go # `eds login`
config.go # `eds config`
Expand Down
File renamed without changes.
Loading