tektoncd / tektoncd/pipelines-as-code

chore: rename Go module path from openshift-pipelines to tektoncd

Open
#2,562 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority/medium tektoncd-migration
Dominant language
Go
Stars
214
Forks
144
Avg merge
2d 11h
Merged PRs (30d)
27

Description

Context

The Go module path currently uses the openshift-pipelines org. It must be renamed to tektoncd as part of the migration. This is a breaking change for any downstream consumers importing the PAC module.

Files to update

  • go.mod:1: github.com/openshift-pipelines/pipelines-as-codegithub.com/tektoncd/pipelines-as-code
  • docs/go.mod:1: same rename
  • Makefile:34: two -ldflags occurrences referencing the old module path (version + settings packages)
  • config/400-controller.yaml:48: ko://github.com/openshift-pipelines/pipelines-as-code/cmd/pipelines-as-code-controller
  • config/500-watcher.yaml:48: ko://github.com/openshift-pipelines/pipelines-as-code/cmd/pipelines-as-code-watcher
  • config/600-webhook.yaml:47: ko://github.com/openshift-pipelines/pipelines-as-code/cmd/pipelines-as-code-webhook
  • pkg/test/nonoai/deployment.yaml: ko:// paths referencing old module
  • All Go import paths in pkg/, cmd/, test/, internal/ — mass replace

Steps

  1. Run: find . -type f -name '*.go' | xargs sed -i 's|github.com/openshift-pipelines/pipelines-as-code|github.com/tektoncd/pipelines-as-code|g'
  2. Update go.mod, docs/go.mod, Makefile, and YAML config files as listed above
  3. Run make vendor && make test to verify

Notes

  • This is a breaking change for downstream consumers importing the Go module directly.
  • The GitHub repo transfer (when it happens) will make the old import path a redirect, but Go modules are pinned by path — downstream users must update their go.mod.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with go.mod:1, docs/go.mod:1, Makefile:34, the listed config YAML files, and Go imports under pkg/, cmd/, test/, and internal/. Apply the documented path replacement, update the remaining files, then run make vendor && make test to verify the migration.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
build-system, infrastructure, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.