In order to install kpt package inside, I am referring to this link
I am running the below command in the docker and it is working fine
RUN mkdir -p ~/bin
RUN curl -L https://github.com/GoogleContainerTools/kpt/releases/download/v1.0.0-beta.1/kpt_linux_amd64 --output ~/bin/kpt && chmod u+x ~/bin/kpt
RUN export PATH=${HOME}/bin:${PATH}
# Below line of code is to ensure that kpt is installed and working fine
RUN ~/bin/kpt pkg get https://github.com/ajinkya101/kpt-demo-repo.git/Packages/Nginx
but I am facing an error using the below lines of code
RUN SRC_REPO=https://github.com/kubeflow/manifests
RUN ~/bin/kpt pkg get $SRC_REPO/tf-training@v1.1.0 tf-training
RUN ~/bin/kpt pkg get $SRC_REPO/tf-training@v1.1.0 tf-training:
#13 0.261 Error: ambiguous repo/dir@version specify '.git' in argument
But if I run the following command in macOS I am able to download and create the directory tf-training
/bin/kpt pkg get $SRC_REPO/tf-training@v1.1.0 tf-training
Results after running the above code
Package "tf-training":
Fetching https://github.com/kubeflow/manifests@v1.1.0
From https://github.com/kubeflow/manifests
* tag v1.1.0 -> FETCH_HEAD
Adding package "tf-training".
Fetched 1 package(s).
I am not able to understand what is causing the error. Using kpt with version is working fine in macos but not in linux.
Please help me with the resolution