[keycloak-dev] Build on master broken?

Bruno Oliveira bruno at abstractj.org
Wed May 16 11:28:09 EDT 2018


There are some corner cases which you have to recompile the runtime package
from Go to get it working (https://github.com/golang/go/issues/14816). So
here's my theory:

I had the backups from my previous machine running Fedora 27. I restored
then in the new machine with Fedora 28, including $HOME/.mvnGoLang. When I
ran our build, certainly the mvn Go plugin identified that the existent
path and tried to reuse the libs compiled to the previous architecture.

For our CI this will never happen, because the environment will always be
fresh. So thankfully, we don't have to worry about it.

On Wed, May 16, 2018 at 12:04 PM Bill Burke <bburke at redhat.com> wrote:

> Weird, not sure what was wrong with .mvnGoLang for you.
>
> On Wed, May 16, 2018 at 10:26 AM, Bruno Oliveira <bruno at abstractj.org>
> wrote:
> > Bingo! "rm -rf .mvnGoLang" did the trick for me. Nothing else was
> necessary
> > to be changed.
> >
> > Thanks Bill
> >
> > On Tue, May 15, 2018 at 6:00 PM Bill Burke <bburke at redhat.com> wrote:
> >>
> >> Master built for me fine.  I did this:
> >>
> >> $ rm -rf .m2
> >> $ rm -rf .mvnGoLang
> >> $ mvn clean install -DskipTests=true
> >>
> >>
> >>
> >> On Tue, May 15, 2018 at 4:17 PM, Bill Burke <bburke at redhat.com> wrote:
> >> > Its my stuff commit.  I build on Fedora.  And the CI is Linux too.
> >> > This commit was a long time about like 6 weeks ago.  I'll try and
> >> > reproduce.
> >> >
> >> > Mousetrap is a windows dependency yes, but it should build on Linux.
> >> > If you remove the mousetrap dependency in maven does it build?  I
> >> > think you can remove this now as mousetrap should be in vendor/
> >> > directory for kcinit.
> >> >
> >> > On Tue, May 15, 2018 at 1:48 PM, Federico Michele Facca
> >> > <federico.facca at martel-innovate.com> wrote:
> >> >> not sure how to help, but i am not having the issue on MacOs x.
> >> >>
> >> >> On 15 May 2018 at 16:58, Bruno Oliveira <bruno at abstractj.org> wrote:
> >> >>
> >> >>> Good morning, it's just me or the build on master is broken? I'm
> >> >>> trying
> >> >>> to do something really simple, build Keycloak on Linux in new
> machine
> >> >>> and I'm getting:
> >> >>>
> >> >>> [10:10 AM] Bruno Oliveira da Silva: [INFO] Prepared command line :
> >> >>> bin/go
> >> >>> get github.com/inconshreveable/mousetrap
> >> >>> [ERROR]
> >> >>> [ERROR] ---------Exec.Err---------
> >> >>> [ERROR] package github.com/inconshreveable/mousetrap
> >> >>> [ERROR] imports runtime
> >> >>> [ERROR] imports runtime/internal/sys: cannot find package
> >> >>> "runtime/internal/sys" in any of:
> >> >>> [ERROR]
> >> >>>
> /home/abstractj/.mvnGoLang/go1.9.2.linux-amd64/src/vendor/runtime/internal/sys
> >> >>> (vendor tree)
> >> >>> [ERROR]
> >> >>>
> /home/abstractj/.mvnGoLang/go1.9.2.linux-amd64/src/runtime/internal/sys
> >> >>> (from $GOROOT)
> >> >>> [ERROR] /home/abstractj/github/keycloak/testsuite/
> >> >>>
> >> >>>
> integration-arquillian/tests/base/target/gopath/src/runtime/internal/sys
> >> >>> (from $GOPATH)
> >> >>> [ERROR] /home/abstractj/github/keycloak/testsuite/
> >> >>>
> >> >>>
> integration-arquillian/tests/base/src/main/java/src/runtime/internal/sys
> >> >>> [ERROR]
> >> >>>
> >> >>> It looks like mousetrap is a Windows specific dependency, so I
> believe
> >> >>> we don't need this to be installed on Linux machines.
> >> >>>
> >> >>> Steps to reproduce:
> >> >>>
> >> >>> 1. rm -rf ~/.m2/repository/ or just mv :)
> >> >>> 2. git clone git at github.com:keycloak/keycloak.git
> >> >>> 3. mvn clean install -DskipTests=true
> >> >>>
> >> >>> Also looks like the following commit introduced the issue:
> >> >>>
> >> >>>
> https://github.com/keycloak/keycloak/commit/681e3d751e003b563f26b4105313eb
> >> >>> 69cdbda2ea
> >> >>>
> >> >>> Am I doing something wrong or missing some step?
> >> >>>
> >> >>> --
> >> >>>
> >> >>> abstractj
> >> >>> _______________________________________________
> >> >>> keycloak-dev mailing list
> >> >>> keycloak-dev at lists.jboss.org
> >> >>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> *Dr. FEDERICO MICHELE FACCA*
> >> >> *Head of Martel Lab*
> >> >> 0041 78 807 58 38
> >> >> *Martel Innovate* <https://www.martel-innovate.com/>  -
> Professional
> >> >> support for innovation projects
> >> >> Click to download our innovators' insights!
> >> >> <https://www.martel-innovate.com/premium-content/>
> >> >> Follow Us on Twitter <https://twitter.com/Martel_Innovate>
> >> >> _______________________________________________
> >> >> keycloak-dev mailing list
> >> >> keycloak-dev at lists.jboss.org
> >> >> https://lists.jboss.org/mailman/listinfo/keycloak-dev
> >> >
> >> >
> >> >
> >> > --
> >> > Bill Burke
> >> > Red Hat
> >>
> >>
> >>
> >> --
> >> Bill Burke
> >> Red Hat
>
>
>
> --
> Bill Burke
> Red Hat
>


More information about the keycloak-dev mailing list