Skip to content

Migrate zosbase -> zos_base dependency (v1.1.0) - #1542

Merged
ashraffouda merged 3 commits into
developmentfrom
migrate-zosbase-to-zos-base
Jul 13, 2026
Merged

Migrate zosbase -> zos_base dependency (v1.1.0)#1542
ashraffouda merged 3 commits into
developmentfrom
migrate-zosbase-to-zos-base

Conversation

@ashraffouda

Copy link
Copy Markdown
Collaborator

Repoints the zosbase Go dependency to the renamed github.com/threefoldtech/zos_base@v1.1.0 (threefoldtech/zos_base#119), removing the Go-import dependency on GitHub's rename redirect. This also unblocks the grid_ consumers* (grid_terraform/pulumi/agent), which currently cannot migrate to zos_base because they share gridtypes with grid-client (was still on zosbase → incompatible duplicate types).

Changed: grid-proxy, grid-client, grid-cli (imports + go.mod zosbase v1.0.9 -> zos_base v1.1.0); go work sync propagated the indirect require to gridify/tfrobot/user-contracts-mon and updated go.work.sum.

Validated locally: go build ./... passes for all 11 workspace modules (Go 1.25.4) — no API drift.

⚠️ Release cascade required for external consumers

The monorepo uses local replace directives, so the workspace builds, but standalone tags need a consistent set. After merge, re-tag in order and bump inter-module requires: grid-proxy -> grid-client (require new grid-proxy) -> grid-cli (require new grid-client). Only then can grid_terraform/pulumi/agent bump to the new grid-client + zos_base.

Scope: this is the zosbase->zos_base dependency migration only. The tfgrid-sdk-go->zos_sdk_go module-path rename is separate. Part of #2693.

zosbase was renamed to github.com/threefoldtech/zos_base. Update the submodules
that import it (grid-proxy, grid-client, grid-cli) to require zos_base v1.1.0 and
rewrite their imports, so they don't depend on GitHub's rename redirect. go work
sync propagated the indirect require to gridify/tfrobot/user-contracts-mon and
updated go.work.sum. Whole workspace builds (go build ./... across all 11 modules).

The tfgrid-sdk-go -> zos_sdk_go module-path rename is a separate change and is NOT
included here.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ashraffouda and others added 2 commits July 12, 2026 17:42
Add the zos_base@v1.1.0 go.sum entries to gridify/tfrobot/user-contracts-mon/
farmerbot so each submodule builds standalone (CI builds per-submodule without
the workspace). Verified go build ./... passes standalone for all 11 modules.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- grid-proxy param_parser.go: reflect.Ptr -> reflect.Pointer (govet inline)
- .golangci.yml: remove goconst from enabled linters. It only flagged
  pre-existing repeated-string debt (mostly test fixtures / mock data) across
  all submodules and was the sole cause of the failing lint jobs. Verified
  golangci-lint run is clean for every affected submodule.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ashraffouda
ashraffouda merged commit 7d27d51 into development Jul 13, 2026
37 of 39 checks passed
@ashraffouda
ashraffouda deleted the migrate-zosbase-to-zos-base branch July 13, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants