-
Andrew Kutz authored
This patch prepares the repository for moving to the "main" branch. The following steps were taken to identify and change valid occurrences of "master" to "main": 1. Replace obvious patterns: grep -rIl 'govmomi/[^/]\{1,\}/master' * | xargs -n1 -I% \ sed -i.m2m -e 's~govmomi/\(.*\)/master~govmomi/\1/main~g' % && \ find . -name '*.m2m' -type f -delete 2. Replace instances in `RELEASE.md`: sed -i.m2m -e 's~master~main~g' RELEASE.md && rm -f RELEASE.md.m2m 3. Replace instances in `CONTRIBUTING.md`: sed -i.m2m -e 's~vmware/master~main~g' CONTRIBUTING.md && \ rm -f CONTRIBUTING.md.m2m 4. Replace instances in `.goreleaser.yml`: sed -i.m2m -e 's~govmomi/\(.*\)/master~govmomi/\1/main~g' \ .goreleaser.yml && rm -f .goreleaser.yml.m2m 5. Replace instances in GitHub workflows: grep -rIl "'main', 'master'" .github/* | xargs -n1 -I% \ sed -i.m2m -e "s~'main', 'master'~'main'~g" % && \ find .github -name '*.m2m' -type f -delete grep -rIl '"main", "master"' .github/* | xargs -n1 -I% \ sed -i.m2m -e 's~"main", "master"~"main"~g' % && \ find .github -name '*.m2m' -type f -delete sed -i.m2m -e 's~master~main~g' \ .github/workflows/codeql-analysis.yml && \ rm -f .github/workflows/codeql-analysis.yml.m2m sed -i.m2m -e 's~master branch~main branch~g' \ -e 's~refs/heads/master~refs/heads/main~g' \ -e 's~ref: "master"~ref: "main"~g' \ .github/workflows/govmomi-release.yaml && \ rm -f .github/workflows/govmomi-release.yaml.m2m grep -rIl 'govmomi/[^/]\{1,\}/master' .github/* | xargs -n1 -I% \ sed -i.m2m -e 's~govmomi/\(.*\)/master~govmomi/\1/main~g' % && \ find .github -name '*.m2m' -type f -delete 6. Replace the project's default version: sed -i.m2m 's~master~main~g' ./internal/version/version.go && \ rm -f ./internal/version/version.go.m2m 7. Searched for all other instances of the word `master` and manually verified they do not refer to this repository: find . -type f -not -path './.git/*' -exec grep -IH master \{\} \; For example: $ find . -type f -not -path './.git/*' -exec grep -IH master \{\} \; ./CHANGELOG.md:- [0422a070] Merge branch 'master' into pc/HardwareInfoNotReplicatingInCloning ./CHANGELOG.md:- [a5c9e1f0] Merge branch 'master' into master ./CHANGELOG.md:- [86375ceb] Merge branch 'master' into fields-info ./CHANGELOG.md:- [26ba22de] Merge branch 'gavrie-master' ./CHANGELOG.md:- [8dbb438b] Merge remote-tracking branch 'upstream/master' into event_manager ./govc/flags/int64.go:// https://github.com/golang/go/blob/master/src/cmd/internal/obj/flag.go ./govc/flags/int32.go:// https://github.com/golang/go/blob/master/src/cmd/internal/obj/flag.go ./govc/test/images/update.sh:wget -qN https://github.com/icebreaker/floppybird/raw/master/build/floppybird.img ./govc/test/README.md: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash ./govc/test/vendor/manifest: "branch": "master", ./govc/USAGE.md: -mgmt-network.floating-IP= Optional. The Floating IP used by the HA master cluster in the when network Mode is DHCP. ./govc/namespace/cluster/enable.go: ControlPlaneManagementNetwork masterManagementNetwork ./govc/namespace/cluster/enable.go:type masterManagementNetwork struct { ./govc/namespace/cluster/enable.go: ControlPlaneManagementNetwork: masterManagementNetwork{ ./govc/namespace/cluster/enable.go: "Optional. The Floating IP used by the HA master cluster in the when network Mode is DHCP.") ./govc/namespace/cluster/enable.go: var masterManagementNetwork *namespace.MasterManagementNetwork ./govc/namespace/cluster/enable.go: masterManagementNetwork = &namespace.MasterManagementNetwork{} ./govc/namespace/cluster/enable.go: masterManagementNetwork.AddressRange = cmd.ControlPlaneManagementNetwork.AddressRange ./govc/namespace/cluster/enable.go: masterManagementNetwork.FloatingIP = cmd.ControlPlaneManagementNetwork.FloatingIP ./govc/namespace/cluster/enable.go: masterManagementNetwork.Mode = &ipam ./govc/namespace/cluster/enable.go: masterManagementNetwork.Network = cmd.ControlPlaneManagementNetwork.Network ./govc/namespace/cluster/enable.go: if masterManagementNetwork != nil { ./govc/namespace/cluster/enable.go: if (masterManagementNetwork.AddressRange.SubnetMask == "") && ./govc/namespace/cluster/enable.go: (masterManagementNetwork.AddressRange.StartingAddress == "") && ./govc/namespace/cluster/enable.go: (masterManagementNetwork.AddressRange.Gateway == "") && ./govc/namespace/cluster/enable.go: (masterManagementNetwork.AddressRange.AddressCount == 0) { ./govc/namespace/cluster/enable.go: masterManagementNetwork.AddressRange = nil ./govc/namespace/cluster/enable.go: masterManagementNetwork.Network = refs.Network ./govc/namespace/cluster/enable.go: MasterManagementNetwork: masterManagementNetwork, ./govc/README.md:* [Create a Debian VM](https://github.com/kubernetes/kubernetes/tree/master/cluster/vsphere) ./govc/README.md:* [Create a Windows VM](https://github.com/dougm/govc-windows-box/blob/master/provision-esx.sh) ./govc/vm/rdm/attach.go://This file in particular https://github.com/codedellemc/govmax/blob/master/api/v1/vmomi.go ./vim25/types/enum.go: ClusterDasFdmAvailabilityStateMaster = ClusterDasFdmAvailabilityState("master") ./vim25/types/enum.go: VsanHostNodeStateMaster = VsanHostNodeState("master") ./vim25/mo/retrieve_test.go: if vm.Config.Name != "kubernetes-master" { ./vim25/mo/fixtures/nested_property.xml: <val xsi:type="xsd:string">kubernetes-master</val> ./gen/sdk/vim-types.xsd: <enumeration value="master" /> ./gen/sdk/vim-types.xsd: <enumeration value="master" /> ./gen/sdk/internalvim-types.xsd: <enumeration value="master" /> ./gen/sdk/internalvim-types.xsd: <enumeration value="master" /> ./README.md:[project-docker-linuxKit]: https://github.com/linuxkit/linuxkit/tree/master/src/cmd/linuxkit ./README.md:[project-influxdata-telegraf]: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/vsphere ./README.md:[project-rancher]: https://github.com/rancher/rancher/blob/master/pkg/api/norman/customization/vsphere/listers.go ./vcsim/README.md:* [Kubernetes](https://github.com/kubernetes/kubernetes/tree/master/pkg/cloudprovider/providers/vsphere) ./vcsim/README.md:* [Telegraf](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/vsphere) ./vcsim/README.md:* [LocalStack](https://github.com/localstack/localstack/blob/master/README.md#why-localstack) ./toolbox/README.md:* [VIC tether toolbox extension](https://github.com/vmware/vic/blob/master/lib/tether/toolbox.go) ./toolbox/README.md:* [VIC container host tether](https://github.com/vmware/vic/blob/master/cmd/vic-init/main_linux.go) ./toolbox/hgfs/server.go:// See: https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/lib/hgfsServer/hgfsServer.c ./toolbox/hgfs/protocol.go:// See: https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/lib/include/hgfsProto.h ./scripts/devbox/README.md:This script is a fork of the [VIC devbox](https://github.com/vmware/vic/tree/master/infra/machines/devbox), ./scripts/devbox/README.md:[vcp]:https://github.com/kubernetes/kubernetes/tree/master/pkg/cloudprovider/providers/vsphere ./scripts/devbox/README.md:As an alternative to the [VIC devbox](https://github.com/vmware/vic/tree/master/infra/machines/devbox). ./.github/workflows/govmomi-go-lint.yaml: curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b "${TEMP_PATH}" 2>&1 ./.github/workflows/govmomi-release.yaml: > Due to a [limitation](https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs) in Github Actions please **close and immediately reopen** this PR to trigger the required workflow checks before merging. ./vapi/namespace/namespace.go: MasterDNSSearchDomains []string `json:"master_DNS_search_domains,omitempty"` ./vapi/namespace/namespace.go: MasterManagementNetwork *MasterManagementNetwork `json:"master_management_network"` ./vapi/namespace/namespace.go: MasterNTPServers []string `json:"master_NTP_servers,omitempty"` ./vapi/namespace/namespace.go: MasterDNS []string `json:"master_DNS,omitempty"` ./vapi/namespace/namespace.go: MasterStoragePolicy string `json:"master_storage_policy,omitempty"` ./vsan/types/types.go: Master string `xml:"master"` ./vsan/types/types.go: MasterInfo *VsanPerfMasterInformation `xml:"masterInfo,omitempty"` BREAKING: Changing GoVmomi's default branch from `master` to `main` will likely result in dependents needing to repoint their clients and other integrations to the new, default branch.
b594bf1f
After you've reviewed these contribution guidelines, you'll be all set to
contribute to this project.
Loading