osdir.com

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

Re: Failing Go build: NodePrime/jsonpath missing?


@Geoff, I recommend vendoring dependencies while you're addressing this.
I've switched from glide to dep in recent months for this and its pretty
painless.

On Fri, 23 Mar 2018 at 10:52 John McCabe <john@xxxxxxxxxxxxxx> wrote:

> There may be something odd going on with that Github account, the linked
> website is flagged as a security threat by Cisco Umbrella on the corp
> network here [1].
>
> 1 - https://i.imgur.com/jTZlRUH.png
>
>
>
> On Fri, 23 Mar 2018 at 10:04 Geoff Macartney <geoff.macartney@xxxxxxxxxxxx>
> wrote:
>
>> Let's give them a bit of time to reply, hopefully it is just a mistake, as
>> you say.  I had a look and while there are other JSONPath golang libs out
>> there, this seems to be the one most highly recommended, so it would be a
>> bit of a shame to lose it.
>>
>> Geoff
>>
>> On Fri, 23 Mar 2018 at 09:54 Thomas Bouron <
>> thomas.bouron@xxxxxxxxxxxxxxxxx>
>> wrote:
>>
>> > Geoff, I asked them if it was intentional for the lib to go dark and if
>> so,
>> > if they know a suitable replacement for it.
>> > I hope it's just a mistake from them, like making the repo private so
>> > hopefully, it will fix itself soon.
>> >
>> > But if you want to take a look by replacing the lib, go for it, you know
>> > the CLI better than anyone ;)
>> >
>> > Best.
>> >
>> > On Fri, 23 Mar 2018 at 09:36 Geoff Macartney <
>> geoff.macartney@xxxxxxxxxxxx
>> > >
>> > wrote:
>> >
>> > > hi all,
>> > >
>> > > I can have a look at this, unless anyone else has already picked it
>> up?
>> > >
>> > > Geoff
>> > >
>> > > On Thu, 22 Mar 2018 at 11:28 Richard Downer <richard@xxxxxxxxxx>
>> wrote:
>> > >
>> > > > Oh no it's left-pad[1] all over again! 😆
>> > > >
>> > > >
>> > > > [1] https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
>> > > >
>> > > > On 22 March 2018 at 10:40, Aled Sage <aled.sage@xxxxxxxxx> wrote:
>> > > >
>> > > > > Hi all,
>> > > > >
>> > > > > The Apache Brooklyn master build [1] has failed the last couple of
>> > > times
>> > > > > for the Go build of brooklyn-client (see end of email for the
>> error
>> > > > text).
>> > > > >
>> > > > > It looks to me like our dependency github.com/NodePrime/jsonpath
>> has
>> > > > been
>> > > > > deleted! It definitely used to be there (lots of google hits
>> pointing
>> > > at
>> > > > > that [2]), but 404 when visiting the page.
>> > > > >
>> > > > > The build presumably only works for me locally because I have it
>> > cached
>> > > > > locally:
>> > > > >
>> > > > >    [exec] [INFO]      Downloading dependencies. Please wait...
>> > > > >    [exec] [INFO]      --> Found desired version locally
>> > > > >    github.com/NodePrime/jsonpath
>> > > > 84403ded544328c99be3472727667179eef23a91!
>> > > > >
>> > > > > Can someone else please double-check my findings?
>> > > > >
>> > > > > I couldn't find any record of jsonpath having moved. Anyone have
>> any
>> > > > > opinions how best to fix this?
>> > > > >
>> > > > > ---
>> > > > > The error shown in jenkins console is:
>> > > > >
>> > > > >    all:
>> > > > >          [exec] Starting build.sh (brooklyn-client go build
>> script)
>> > > > >          [exec] Installing glide
>> > > > >          [exec] Installing dependencies
>> > > > >          [exec] [WARN]    The name listed in the config file
>> > > > >    (github.com/apache/brooklyn-client) does not match the current
>> > > > >    location (.)
>> > > > >          [exec] [INFO]    Downloading dependencies. Please wait...
>> > > > >          [exec] [INFO]    --> Fetching golang.org/x/crypto
>> > > > >          [exec] [INFO]    --> Fetching
>> github.com/NodePrime/jsonpath
>> > > > >          [exec] [INFO]    --> Fetching github.com/urfave/cli
>> > > > >          [exec] [WARN]    Unable to checkout
>> > > > github.com/NodePrime/jsonpath
>> > > > >          [exec] [ERROR]    Update failed for
>> > > > >    github.com/NodePrime/jsonpath: Unable to get repository:
>> Cloning
>> > > > >    into
>> > '/root/.glide/cache/src/https-github.com-NodePrime-jsonpath'...
>> > > > >          [exec] fatal: could not read Username for
>> > > > >    'https://github.com': No such device or address
>> > > > >          [exec] : exit status 128
>> > > > >          [exec] [ERROR]    Failed to install: Unable to get
>> > repository:
>> > > > >    Cloning into
>> > > > >    '/root/.glide/cache/src/https-github.com-NodePrime-jsonpath'...
>> > > > >          [exec] fatal: could not read Username for
>> > > > >    'https://github.com': No such device or address
>> > > > >          [exec] : exit status 128
>> > > > >          [exec] Building br for default OS/ARCH:
>> > > > >          [exec]     darwin/amd64
>> > > > >          [exec] ../models/catalog.go:28:2: cannot find package
>> > > > >    "github.com/NodePrime/jsonpath" in any of:
>> > > > >          [exec]
>> > > > >    /usr/build/brooklyn-client/cli/target/src/github.com/apache
>> > > > > /brooklyn-client/cli/vendor/github.com/NodePrime/jsonpath
>> > > > >    (vendor tree)
>> > > > >          [exec] /usr/lib/go-1.7/src/github.com/NodePrime/jsonpath
>> > > (from
>> > > > >    $GOROOT)
>> > > > >          [exec]
>> > > > >    /usr/build/brooklyn-client/cli/target/src/
>> > > > github.com/NodePrime/jsonpath
>> > > > >    (from $GOPATH)
>> > > > >          [exec] ../command_metadata/command_metadata.go:21:8:
>> cannot
>> > > > >    find package "github.com/urfave/cli" in any of:
>> > > > >          [exec]
>> > > > >    /usr/build/brooklyn-client/cli/target/src/github.com/apache
>> > > > > /brooklyn-client/cli/vendor/github.com/urfave/cli
>> > > > >    (vendor tree)
>> > > > >          [exec]     /usr/lib/go-1.7/src/github.com/urfave/cli
>> (from
>> > > > >    $GOROOT)
>> > > > >          [exec]
>> > > > >    /usr/build/brooklyn-client/cli/target/src/
>> github.com/urfave/cli
>> > > > >    (from $GOPATH)
>> > > > >          [exec] ../commands/login.go:37:2: cannot find package
>> > > > >    "golang.org/x/crypto/ssh/terminal" in any of:
>> > > > >          [exec]
>> > > > >    /usr/build/brooklyn-client/cli/target/src/github.com/apache
>> > > > > /brooklyn-client/cli/vendor/golang.org/x/crypto/ssh/terminal
>> > > > >    (vendor tree)
>> > > > >          [exec] /usr/lib/go-1.7/src/
>> golang.org/x/crypto/ssh/terminal
>> > > > >    (from $GOROOT)
>> > > > >          [exec]
>> > > > >    /usr/build/brooklyn-client/cli/target/src/golang.org/x/cryp
>> > > > > to/ssh/terminal
>> > > > >    (from $GOPATH)
>> > > > >
>> > > > > Aled
>> > > > >
>> > > > > [1] https://builds.apache.org/job/brooklyn-master-build-docker/
>> > > > > [2] https://github.com/NodePrime/jsonpath
>> > > > >
>> > > > >
>> > > >
>> > >
>> > --
>> >
>> > Thomas Bouron • Senior Software Engineer @ Cloudsoft Corporation •
>> > https://cloudsoft.io/
>> > Github: https://github.com/tbouron
>> > Twitter: https://twitter.com/eltibouron
>> >
>>
>