[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dealing with 404 vendor packages



Thanks Paul

On Sun, Mar 15, 2020 at 12:59 PM Paul R. Tagliamonte <paultag@gmail.com> wrote:

> On Sun, Mar 15, 2020, 12:39 PM Tong Sun <suntong001@gmail.com> wrote:
>>
>> On Sun, Mar 15, 2020 at 2:24 AM Vincent Bernat <bernat@debian.org> wrote:
>> >
>> >  ❦ 14 mars 2020 22:50 -04, Tong Sun <suntong001@users.sourceforge.net>:
>> >
>> > > How to deal with vendor packages that are 404 when accessed?
>> > >
>> > > The docker cli has many k8s.io packages in its vendor folder that when
>> > > I try to visit them, I'm getting 404.
>> > >
>> > > E.g. k8s.io/api is one of its vendor packages, but  I'm getting 404 for it.
>> > > (I do have found a repo: https://github.com/kubernetes/api).
>>
>> > Use https://k8s.io/api?go-get=1 to retrieve the real location.
>>
>> OK. that confirms that the https://github.com/kubernetes/api that I
>> found is indeed the k8s.io/api vendor package that docker cli needs.
>>
>> Then the next question is, since docker cli is using vendor packages
>> instead of go modules, I can't really use the go module replace
>> mechanism. So how to deal with this? I.e.,
>>
>> > > Is there any write up on how to deal with such situation, to package
>> > > those 404 vendor packages?

> That url will be used by go get. A go get should determine the right path based on meta headers. It should import fine!
>
> What's the thing you're trying to do here?

I was trying to figure out everything before start packaging. Now,

$ dh-make-golang make -type=l k8s.io/api
2020/03/15 13:05:29 Starting "dh-make-golang v0.3.3 linux/amd64"
2020/03/15 13:05:29 Downloading "k8s.io/api/..."
2020/03/15 13:05:41 Determining upstream version number
2020/03/15 13:05:41 Found latest tag "kubernetes-1.14.0-beta.0"
2020/03/15 13:05:41 WARNING: Latest tag "kubernetes-1.14.0-beta.0" is
not a valid SemVer version
2020/03/15 13:05:41 INFO: master is ahead of
"kubernetes-1.14.0-beta.0" by 521 commits
2020/03/15 13:05:41 Package version is "kubernetes-1.14.0-beta.0"
2020/03/15 13:05:41 Determining dependencies
2020/03/15 13:05:42 Downloading
https://github.com/kubernetes/api/archive/vkubernetes-1.14.0-beta.0.tar.gz
2020/03/15 13:05:42 Could not create a tarball of the upstream source:
404 Not Found

$ ls | wc
      0       0       0

I guess I can't rely on dh-make-golang any more and have to resume
full manual packaging?
And while doing that I should stick to the k8s.io/api name, to name
its folders, and the final package name (golang-k8s.io-api), right?


Reply to: