Score:0

Unable to install kpt package on ubuntu : ambiguous repo/dir@version specify '.git' in argument

sb flag

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

learner avatar
sb flag
using Ubuntu 20.04 LTS as a part of docker. The reason to ask here is that I am facing this while using ubuntu as a part of docker
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.