Skip to content

Can't import machine-config-operator #848

@jmontleon

Description

@jmontleon

I'm trying to import github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1

Go get fails with:

-> unzip /home/jmontleo/Documents/openshift/pkg/mod/cache/download/github.com/openshift/machine-config-operator/@v/v3.11.0+incompatible.zip: malformed file path "pkg/controller/template/test_data/templates/aws/master/files/-etc-docker-certs.d-docker-registry.default.svc:5000-ca.crt": invalid char ':'

Digging around it looks like the colon is reserved on Windows so go doesn't consider it valid.

Steps to reproduce the issue:

$ go get https://github.com/openshift/machine-config-operator
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'
package https:/github.com/openshift/machine-config-operator: https:/github.com/openshift/machine-config-operator: invalid import path: malformed import path "https:/github.com/openshift/machine-config-operator": invalid char ':'

Describe the results you expected:
It should be possible to go get and import

Additional information you deem important (e.g. issue happens only occasionally):
golang/go#28001

Output of oc adm release info --commits | grep machine-config-operator:
N/A

Additional environment details (platform, options, etc.):
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions