kubernetes / kubectl

Issue tracker and mirror of kubectl code
Apache License 2.0
2.85k stars 921 forks source link

Using cp command on Windows with absolute path malfunctions #1406

Open yusufcanb opened 1 year ago

yusufcanb commented 1 year ago

It seems this line causes the bug; https://github.com/kubernetes/kubectl/blob/65639830b2b0e5f6b254d05b911b7676eb7757d2/pkg/cmd/cp/cp.go#L170

Steps to reproduce Execute the command kubectl cp C:\test.txt [your-pod]:/path/to/file/in/pod -n [namespace]

Expected Result File should be copied to the /path/to/file/in/pod

Actual Result failed to copy tar file to pod: error: one of src or dest must be a local file specification

k8s-ci-robot commented 1 year ago

This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

Ithrael commented 1 year ago

/assign

Ithrael commented 1 year ago

See https://github.com/kubernetes/kubectl/issues/1225#issuecomment-1156576538

k8s-triage-robot commented 9 months ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten