Skip to content

chore: bump cosmos dependency and clean up go.mod#123

Merged
privateip merged 7 commits into
mainfrom
pr/1a-go-mod
Jun 23, 2026
Merged

chore: bump cosmos dependency and clean up go.mod#123
privateip merged 7 commits into
mainfrom
pr/1a-go-mod

Conversation

@privateip

Copy link
Copy Markdown
Contributor

Summary

Bump cosmos dependency and clean up go.mod dependencies.

Changes

  • Update go.miloapis.com/cosmos to latest commit
  • Move k8s.io/api from indirect to direct dependency
  • Remove unused spf13/cobra and related dependencies (mousetrap, blackfriday, go-md2man)

This is a prerequisite for all subsequent PRs in the galactic-router rewrite.

- Update go.miloapis.com/cosmos to latest commit
- Move k8s.io/api from indirect to direct dependency
- Remove unused spf13/cobra and related dependencies
- Update CNI to use new BGPRouter/BGPPeer/BGPAdvertisement CRDs
- Rename deploy/galactic-agent → deploy/galactic-router
- Update Dockerfile to build galactic-router instead of galactic-agent
- Update devcontainer, CI scripts, Taskfile for new layout
- Update documentation to reflect router architecture
ecv
ecv previously approved these changes Jun 23, 2026
The cosmos dependency bump changed package paths; BGPProvider/BGPInstance
are replaced by BGPRouter in the new API. Remove the agent, bootstrap, and
gobgp packages that relied on the old paths, update the CNI to use the new
BGPRouter API, and drop the now-unused gobgp/grpc direct dependencies.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
privateip and others added 4 commits June 23, 2026 16:26
# Conflicts:
#	Taskfile.yaml
#	internal/cni/cni.go
#	internal/cni/cni_test.go
chore: update CNI and infrastructure for galactic-router
The galactic-router build targets in Taskfile and Dockerfile referenced
cmd/galactic-router/main.go, which does not exist on this branch (the
router implementation and its internal packages land in a later stacked
PR). go build treated the missing file path as an import path, failing
with "package cmd/galactic-router/main.go is not in std" and breaking the
Build CI job. Drop the premature router build/copy steps so each binary
that actually has source on this branch builds cleanly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
cosmos is now a regular module dependency (this PR's go.mod cleanup), no
longer a local ../cosmos replace. The Dockerfile still copied it from a
"cosmos" named build context and scripts/ci.sh passed
--build-context cosmos=../cosmos, which does not exist in CI, breaking the
E2E image build ("failed to get build context cosmos: stat ../cosmos").
Remove both; go mod download now fetches cosmos from the module proxy.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@privateip privateip merged commit c6259db into main Jun 23, 2026
5 checks passed
@privateip privateip deleted the pr/1a-go-mod branch June 23, 2026 21:18
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