-
Notifications
You must be signed in to change notification settings - Fork 80
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
Support publishing staging directories to subdirectories of external repos #156
Comments
@andrewrynhard we cannot change the package hierarchy on the fly when publishing, e.g. have it called Does that help your use-caes? |
Yes! That should work. So to be clear, we can publish |
@andrewrynhard yes. The other exception is Godeps. Never touch that directory from outside. |
One important point: the bot updates Godeps/Godeps.json (today) and go.mod (tomorrow) at the root of the repository. I.e. this will have to cover the whole repository. I assume you will put other Go code in other directories, which will have to be covered by go.mod as well. Go.mod also has to be in the k/k repo. But there it will be only partial. Also hack/update-vendor.sh will call How are you planning to solve this? |
Sorry in advance, I'm still learning the details around go modules. Since go modules supports nested directories, would having a |
Technically yes. But the bot currently does not support maintaining a subdirectory. It expects go.mod at the top-level. |
Could work, if nobody is confused for Gopkg and go.mod (and Godeps/Godeps.json which we create for compatibility) :-) |
Assuming it's possible, I'm willing to do the work to make this happen with a bit of guidance. Any objections? |
@andrewsykim here you have to add a gomod-dir parameter everywhere: https://github.com/kubernetes/publishing-bot/blob/master/artifacts/scripts/util.sh |
/close Don't think we'll need this for now, will re-open if we do |
@andrewsykim: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
As part of the cloud provider removal efforts, it may be beneficial for us to support publishing staged directories to only subdirectories of external repos. This gives us the flexibility to publish the cloud provider implementations developed in k8s.io/kubernetes into their respective external repos without forcing the entire repository to reflect what is in staging.
An example of this would be to publish
k8s.io/kubernetes/staging/src/k8s.io/cloud-provider/gce
tok8s.io/cloud-provider-gce/provider/
. This would keep onlyk8s.io/cloud-provider-gce/provider/
in sync with what is staged but allow us to freely update any other directory in that repo.Happy to pick up any work required for this (will need some guidance though).
cc @nikhita @cheftako @mcrute @dims
The text was updated successfully, but these errors were encountered: