Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate serving to use the knative.dev/serving import path #4521

Merged
merged 2 commits into from
Jul 12, 2019

Conversation

mattmoor
Copy link
Member

I have broken this into two commits:

  1. The manual changes I made.
  2. The scripted changes I made.

This is a BREAKING change for all contributors

After this has merged, the following changes are needed:

  1. Move or recreate your knative/serving directory to ${GOPATH}/src/knative.dev/serving
  2. Run the following sed command on any outstanding changes:
sed -i '[email protected]/knative/[email protected]/serving@g' $(find -name '*.go' | xargs grep github.com/knative/serving | cut -d':' -f 1 | uniq)

In order to merge this, we are going to have to effectively take a lock on Prow for a few hours because we will need to change the repository configuration and land this change (which also won't pass CI until that change is made).

Fixes: #971

/hold

Until after we cut 0.7, and land basically every change that's ready to go.

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 25, 2019
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 25, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. area/API API objects and controllers area/autoscale area/networking area/test-and-release It flags unit/e2e/conformance/perf test issues for product features labels Jun 25, 2019
@jchesterpivotal
Copy link
Contributor

/lgtm

I heartily endorse this PR. The overlapping of knative.dev/serving and github.com/knative/serving makes go mod churlish and insubordinate.

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 6, 2019
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 11, 2019
@mattmoor mattmoor force-pushed the knative-serving branch 2 times, most recently from 96baafb to c4eea68 Compare July 12, 2019 01:27
@mattmoor
Copy link
Member Author

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 12, 2019
```
sed -i '[email protected]/knative/[email protected]/serving@g' $(find -name '*.go' | xargs grep github.com/knative/serving | cut -d':' -f 1 | uniq)
sed -i '[email protected]/knative/[email protected]/serving@g' $(find -name '*.yaml' | xargs grep github.com/knative/serving | cut -d':' -f 1 | uniq)
./hack/update-codegen.sh
```
@mattmoor
Copy link
Member Author

/retest

@chaodaiG
Copy link
Contributor

/retest
/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 12, 2019
@chaodaiG
Copy link
Contributor

/test pull-knative-serving-go-coverage

@chaodaiG
Copy link
Contributor

/test pull-knative-serving-integration-tests

@knative-prow-robot knative-prow-robot merged commit 303602b into knative:master Jul 12, 2019
@mattmoor mattmoor deleted the knative-serving branch July 12, 2019 19:23
bbrowning added a commit to bbrowning/serving that referenced this pull request Dec 14, 2019
In PR knative#4521 we accidentally replaced all
https://github.com/knative/serving/... links in our Go source files
with https://knative.dev/serving/...

Those links should have been left as github.com. This fixes that. The
commit is entirely scripted via:

sed -i 's@https://knative.dev/serving@https://github.com/knative/serving@g' $(find -name '*.go' | xargs grep knative.dev/serving | cut -d':' -f 1 | uniq)
knative-prow-robot pushed a commit that referenced this pull request Dec 16, 2019
In PR #4521 we accidentally replaced all
https://github.com/knative/serving/... links in our Go source files
with https://knative.dev/serving/...

Those links should have been left as github.com. This fixes that. The
commit is entirely scripted via:

sed -i 's@https://knative.dev/serving@https://github.com/knative/serving@g' $(find -name '*.go' | xargs grep knative.dev/serving | cut -d':' -f 1 | uniq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/API API objects and controllers area/autoscale area/networking area/test-and-release It flags unit/e2e/conformance/perf test issues for product features cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up code.knative.dev vanity URL for go get
7 participants