Hi Charitha, Yes, I tried to execute the script on the same directory. But doing what you've suggested did not fix the error. The error log is at [1] <https://travis-ci.org/Dilhasha/AppFacCLI/builds/71124846>. My build scripts are at [2]. <https://github.com/Dilhasha/AppFacCLI/tree/master/bin> I copied the build scripts to [3] <https://github.com/Dilhasha/AppFacCLI/tree/master/execute> and changed .travis.yml [4] <https://github.com/Dilhasha/AppFacCLI/blob/master/.travis.yml> to execute the script in a that folder. Are my steps correct?
[1] https://travis-ci.org/Dilhasha/AppFacCLI/builds/71124846 <https://travis-ci.org/Dilhasha/AppFacCLI/builds/71124846> [2] https://github.com/Dilhasha/AppFacCLI/tree/master/bin <https://github.com/Dilhasha/AppFacCLI/tree/master/bin> [3] https://github.com/Dilhasha/AppFacCLI/tree/master/execute [4] https://github.com/Dilhasha/AppFacCLI/blob/master/.travis.yml Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer <http://lk.linkedin.com/in/dilhasha/> (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jul 15, 2015 at 11:23 AM, Charitha Goonetilleke <charit...@wso2.com> wrote: > Hi Dilhasha, > > Did you tried to execute your script on the same directory as you tried > previously? If so there is chance to a local git config conflict. i.e. you > might already have git configs for your previous script which you tried to > clone from remote[1]. Then those configs might get conflicted with your new > remote[2] and it might be shown as a "detached HEAD" error. So first, > please try to execute your script in a different folder. > > If it is not solving your problem, could you please attached your complete > build script? > > > [1] https://github.com/appfac/cli > [2] https://github.com/Dilhasha/AppFacCLI > > Regards, > /Charithag > > On Wed, Jul 15, 2015 at 8:43 AM, Fathima Dilhasha <dilhasha....@gmail.com> > wrote: > >> Hi Charitha, >> >> Thank you for pointing out that mistake. That corrected "Authentication >> failure error". >> But now I'm getting a "detached HEAD" error. >> >> $ go env >> >> GOARCH="amd64" >> >> GOBIN="" >> >> GOCHAR="6" >> >> GOEXE="" >> >> GOHOSTARCH="amd64" >> >> GOHOSTOS="linux" >> >> GOOS="linux" >> >> GOPATH="/home/travis/gopath" >> >> GORACE="" >> >> GOROOT="/home/travis/.gimme/versions/go1.3.linux.amd64" >> >> GOTOOLDIR="/home/travis/.gimme/versions/go1.3.linux.amd64/pkg/tool/linux_amd64" >> >> CC="gcc" >> >> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" >> >> CXX="g++" >> >> CGO_ENABLED="1" >> >> 16.51s$ go get -t -v ./... >> >> github.com/Dilhasha/AppFacCLI (download) >> >> # cd /home/travis/gopath/src/github.com/Dilhasha/AppFacCLI; git symbolic-ref >> HEAD >> >> fatal: ref HEAD is not a symbolic ref >> >> /home/travis/gopath/src/github.com/Dilhasha/AppFacCLI on detached head; >> repairing >> >> package github.com/Dilhasha/AppFacCLI/cli/formats >> >> imports github.com/Dilhasha/AppFacCLI/cli/formats >> >> imports github.com/Dilhasha/AppFacCLI/cli/formats: cannot find package >> "github.com/Dilhasha/AppFacCLI/cli/formats" in any of: >> >> >> /home/travis/.gimme/versions/go1.3.linux.amd64/src/pkg/github.com/Dilhasha/AppFacCLI/cli/formats >> (from $GOROOT) >> >> /home/travis/gopath/src/github.com/Dilhasha/AppFacCLI/cli/formats (from >> $GOPATH) >> >> >> >> My repo was having a detached HEAD when this error initially popped up. I'm >> getting the same error even after I corrected it. I added the following to >> my .travis.yml as suggested in [1] >> <http://stackoverflow.com/questions/27560551/head-detached-warning-in-travis-ci-when-deploying-to-heroku>. >> Still the problem is not resolved. >> >> Can you help me out to resolve this issue? >> >> [1] >> http://stackoverflow.com/questions/27560551/head-detached-warning-in-travis-ci-when-deploying-to-heroku >> >> >> >> Thanks. >> >> Regards, >> >> Dilhasha >> >> >> Fathima Dilhasha Nazeer <http://lk.linkedin.com/in/dilhasha/> >> (M.N.F.Dilhasha) >> Undergraduate | Department of Computer Science and Engineering >> University of Moratuwa >> Sri Lanka >> >> On Mon, Jul 13, 2015 at 9:10 AM, Charitha Goonetilleke < >> charit...@wso2.com> wrote: >> >>> Hi Dilhasha, >>> >>> Seems according to error log, your build script tried to clone invalid >>> or unauthorized remote[1] while you need to clone remote[2]. So please make >>> sure your build script contains the correct remote. >>> >>> Regards, >>> /Charithag >>> >>> >>> [1] https://github.com/appfac/cli >>> [2] https://github.com/Dilhasha/AppFacCLI >>> >>> On Sat, Jul 11, 2015 at 5:46 AM, Fathima Dilhasha < >>> dilhasha....@gmail.com> wrote: >>> >>>> Hi, >>>> >>>> I'm trying to configure travis build[1] <https://travis-ci.org/> for >>>> my github repository at [2] <https://github.com/Dilhasha/AppFacCLI>. >>>> >>>> To build this project, the script "bin/build-all" needs to be run. But >>>> when I specify it as follows in the .travis.yml file, >>>> >>>> language: go go: - 1.3 >>>> script: go build ./bin/build-all >>>> I get an error in the Travis build as follows. >>>> >>>> $ go env >>>> >>>> GOARCH="amd64" >>>> >>>> GOBIN="" >>>> >>>> GOCHAR="6" >>>> >>>> GOEXE="" >>>> >>>> GOHOSTARCH="amd64" >>>> >>>> GOHOSTOS="linux" >>>> >>>> GOOS="linux" >>>> >>>> GOPATH="/home/travis/gopath" >>>> >>>> GORACE="" >>>> >>>> GOROOT="/home/travis/.gimme/versions/go1.3.linux.amd64" >>>> >>>> GOTOOLDIR="/home/travis/.gimme/versions/go1.3.linux.amd64/pkg/tool/linux_amd64" >>>> >>>> CC="gcc" >>>> >>>> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" >>>> >>>> CXX="g++" >>>> >>>> CGO_ENABLED="1" >>>> >>>> 29.46s$ go get -t -v ./... >>>> >>>> github.com/appfac/cli (download) >>>> >>>> # cd .; git clone https://github.com/appfac/cli >>>> /home/travis/gopath/src/github.com/appfac/cli >>>> >>>> Cloning into '/home/travis/gopath/src/github.com/appfac/cli'... >>>> >>>> remote: Invalid username or password. >>>> >>>> fatal: Authentication failed for 'https://github.com/appfac/cli/' >>>> >>>> package github.com/appfac/cli/formats: exit status 128 >>>> >>>> >>>> Any help on figuring out the problem and a solution will be great. >>>> >>>> [1] https://travis-ci.org/ >>>> <https://www.google.com/url?q=https%3A%2F%2Ftravis-ci.org%2F&sa=D&sntz=1&usg=AFQjCNGxE2sXyChgbqdu8GvzXGHlel5QOw> >>>> [2] https://github.com/Dilhasha/AppFacCLI >>>> >>>> Thanks, >>>> Regards, >>>> Dilhasha >>>> >>>> Fathima Dilhasha Nazeer <http://lk.linkedin.com/in/dilhasha/> >>>> (M.N.F.Dilhasha) >>>> Undergraduate | Department of Computer Science and Engineering >>>> University of Moratuwa >>>> Sri Lanka >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> *Charitha Goonetilleke* >>> Software Engineer >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: +94 77 751 3669 <%2B94777513669> >>> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag >>> <https://www.facebook.com/charithag>, linkedin: charithag >>> <http://www.linkedin.com/in/charithag> >>> >> >> > > > -- > *Charitha Goonetilleke* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 77 751 3669 <%2B94777513669> > Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag > <https://www.facebook.com/charithag>, linkedin: charithag > <http://www.linkedin.com/in/charithag> >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev