-
Notifications
You must be signed in to change notification settings - Fork 148
gb build does not create bin folder and binary in bin folder #722
Comments
Is their a main package in your project? Is your source online somewhere?
Have you used symlink?
…On Mon, 29 May 2017, 11:23 mg03 ***@***.***> wrote:
When i run a gb build , it does not generate the project binary nor does
it generate the bin folder
The following is the project structure . (i have set DEBUG=true)
pwd
/Users/go_workspace/alert_website
ls
src vendor
gb list
2017/05/28 18:15:32 depfile.go:184: loading depfile at "/Users/go_workspace/alert_website/depfile"
2017/05/28 18:15:32 depfile.go:32: no depfile, nothing to do.
2017/05/28 18:15:32 context.go:319: project root "/Users/go_workspace/alert_website"
cache
cache/memory
cache/redis
conf
2017/05/28 18:15:32 context.go:303: removing work directory: /var/folders/tk/40ntfp_91gl9zbvytjx7zwgd_8h2q9/T/gb338538159
gb env
2017/05/28 18:15:53 depfile.go:184: loading depfile at "/Users/go_workspace/alert_website/depfile"
2017/05/28 18:15:53 depfile.go:32: no depfile, nothing to do.
2017/05/28 18:15:53 context.go:319: project root "/Users/go_workspace/alert_website"
GB_PROJECT_DIR="/Users/go_workspace/alert_website"
GB_SRC_PATH="/Users/go_workspace/alert_website/src:/Users/go_workspace/alert_website/vendor/src"
GB_PKG_DIR="/Users/go_workspace/alert_website/pkg/darwin-amd64"
GB_BIN_SUFFIX="-darwin-amd64"
GB_GOROOT="/usr/local/Cellar/go/1.8.1/libexec"
2017/05/28 18:15:53 context.go:303: removing work directory: /var/folders/tk/40ntfp_91gl9zbvytjx7zwgd_8h2q9/T/gb206971735
go env
GOARCH="amd64"
GOBIN="/Users/go_workspace/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/go_workspace"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.1/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
gb info
2017/05/28 18:19:53 depfile.go:184: loading depfile at "/Users/go_workspace/alert_website/depfile"
2017/05/28 18:19:53 depfile.go:32: no depfile, nothing to do.
2017/05/28 18:19:53 context.go:319: project root "/Users/go_workspace/alert_website"
GB_PROJECT_DIR="/Users/go_workspace/alert_website"
GB_SRC_PATH="/Users/go_workspace/alert_website/src:/Users/go_workspace/alert_website/vendor/src"
GB_PKG_DIR="/Users/go_workspace/alert_website/pkg/darwin-amd64"
GB_BIN_SUFFIX="-darwin-amd64"
GB_GOROOT="/usr/local/Cellar/go/1.8.1/libexec"
2017/05/28 18:19:53 context.go:303: removing work directory: /var/folders/tk/40ntfp_91gl9zbvytjx7zwgd_8h2q9/T/gb934120865
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#722>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA_qpOiYKOcGiL773rFG-yVYuQyVbks5r-h4agaJpZM4No0n8>
.
|
No symlink
Yes there is a main package
Its not online ... sorry cant put code online ... but i have one more thing to add, I dont know if thats relevant I used to run
|
Interesting, that must mean, for whatever reason; gb is ignoring the folder
$PROJECT/src/alert_website
Can you try this for ne
cd $PROJECT/src/alert_website
env DEBUG=. gb build
and post the complete output.
…On Mon, May 29, 2017 at 12:16 PM, mg03 ***@***.***> wrote:
No symlink
TUSCA09UMLOC04M:alert_website $ find -L ./ -type l
TUSCA09UMLOC04M:alert_website $ find ./ -type l -ls
TUSCA09UMLOC04M:alert_website $ ls -lR ./ | grep ^l
Yes there is a main package
pwd
/Users/go_workspace/alert_website/src/alert_website/main.go
cat main.go
package main
import (
"fmt"
"github.com/gorilla/mux"
"net/http"
"time"
"strconv"
"os"
"syscall"
"context"
"os/signal"
"runtime"
"conf"
"web"
log "github.com/sirupsen/logrus"
"api"
)
var (
logger *log.Logger
)
func init() {
logger := log.New()
logger.Formatter = &log.JSONFormatter{}
}
blah blah blah .....
Its not online ... sorry cant put code online ...
but i have one more thing to add, I dont know if thats relevant
I used to run
gb build and things were fine till like a couple of hours ago when I ran
using race flag like so
gb build -f -F -race and since then whenever I ran gb build it did not
generate a new binary
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA3Vp0bO-GSAJRWSmE3O2qzdXl6gmks5r-ipqgaJpZM4No0n8>
.
|
You shouldn't need -F -f to build a race enabled version.
…On Mon, May 29, 2017 at 12:32 PM, Dave Cheney ***@***.***> wrote:
Interesting, that must mean, for whatever reason; gb is ignoring the folder
$PROJECT/src/alert_website
Can you try this for ne
cd $PROJECT/src/alert_website
env DEBUG=. gb build
and post the complete output.
On Mon, May 29, 2017 at 12:16 PM, mg03 ***@***.***> wrote:
> No symlink
>
> TUSCA09UMLOC04M:alert_website $ find -L ./ -type l
> TUSCA09UMLOC04M:alert_website $ find ./ -type l -ls
> TUSCA09UMLOC04M:alert_website $ ls -lR ./ | grep ^l
>
> Yes there is a main package
>
> pwd
> /Users/go_workspace/alert_website/src/alert_website/main.go
>
> cat main.go
>
> package main
>
> import (
> "fmt"
> "github.com/gorilla/mux"
> "net/http"
> "time"
> "strconv"
> "os"
> "syscall"
> "context"
> "os/signal"
> "runtime"
> "conf"
> "web"
> log "github.com/sirupsen/logrus"
> "api"
> )
>
> var (
> logger *log.Logger
> )
>
> func init() {
> logger := log.New()
> logger.Formatter = &log.JSONFormatter{}
> }
>
>
> blah blah blah .....
>
>
> Its not online ... sorry cant put code online ...
>
> but i have one more thing to add, I dont know if thats relevant
>
> I used to run
>
> gb build and things were fine till like a couple of hours ago when I ran
> using race flag like so
> gb build -f -F -race and since then whenever I ran gb build it did not
> generate a new binary
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#722 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAAcA3Vp0bO-GSAJRWSmE3O2qzdXl6gmks5r-ipqgaJpZM4No0n8>
> .
>
|
ok thanx for the tip on race enabled build |
That's really strange. Can you please upload main.go, if it exists to this
issue. Something about that file is causing gb to ignore it.
…On Mon, 29 May 2017, 12:43 mg03 ***@***.***> wrote:
pwd
/Users/go_workspace/alert_website/src/alert_website
TUSCA09UMLOC04M:alert_website $ ls
main.go
TUSCA09UMLOC04M:alert_website $ env DEBUG=. gb build
2017/05/28 19:42:27 depfile.go:184: loading depfile at "/Users/go_workspace/alert_website/depfile"
2017/05/28 19:42:27 depfile.go:32: no depfile, nothing to do.
2017/05/28 19:42:27 context.go:319: project root "/Users/go_workspace/alert_website"
FATAL: command "build" failed: no packages supplied
2017/05/28 19:42:27 context.go:303: removing work directory: /var/folders/tk/40ntfp_91gl9zbvytjx7zwgd_8h2q9/T/gb255534404
ok thanx for the tip on race enabled build
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA5YQrHtkCET2duBs7mbBMeo9XMEAks5r-jDRgaJpZM4No0n8>
.
|
https://gist.github.com/mg03/8dfb4aec023145898c90804d04f1c817 If you cant see it let me know |
Can you please zip up the original file, I'm interested to see if there are
some characters which may not be reproduced if the contents are copy
pasted.
…On Mon, 29 May 2017, 12:53 mg03 ***@***.***> wrote:
https://gist.github.com/mg03/8dfb4aec023145898c90804d04f1c817
If you cant see it let me know
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA_na6iIurbLBrwktvr6d3tP1icnuks5r-jMQgaJpZM4No0n8>
.
|
Can you please zip up the original file, I'm interested to see if there are
some characters which may not be reproduced if the contents are c
…On Mon, 29 May 2017, 12:53 mg03 ***@***.***> wrote:
https://gist.github.com/mg03/8dfb4aec023145898c90804d04f1c817
If you cant see it let me know
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA_na6iIurbLBrwktvr6d3tP1icnuks5r-jMQgaJpZM4No0n8>
.
|
Thank, I've confirmed that there are no byte order marks or other
unprintable characters.
Can you please try these two things
1. rm -rf $PROJECT/pkg and try to build
2. if that does not work, rename your main package to something else and
try to build
…On Mon, May 29, 2017 at 1:14 PM, mg03 ***@***.***> wrote:
http://jmp.sh/3yoR2Eh
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA3pvDtNtX7gtfGIQnkCS533Rz9WBks5r-jgcgaJpZM4No0n8>
.
|
tried both things no dice.... i did do one other thing, i created a new folder structure with a diff projectname and copied the contents of the current project to the new project folder and then gb build works ... old project name alert_website , new project name alert2web |
Just try renaming the one package that is invisible to gb.
…On Mon, May 29, 2017 at 1:29 PM, mg03 ***@***.***> wrote:
tried both things no dice....
i did do one other thing, i created a new folder structure with a diff
projectname and copied the contents of the current project to the new
project folder and then gb build works ... old project name alert_website ,
new project name alert2web
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA8jl8gF_BNBFSxSP2Hy-8z63GXlHks5r-juvgaJpZM4No0n8>
.
|
Also, is your username on you mac, go_workspace, or are you editing the
output before pasting it?
…On Mon, May 29, 2017 at 1:34 PM, Dave Cheney ***@***.***> wrote:
Just try renaming the one package that is invisible to gb.
On Mon, May 29, 2017 at 1:29 PM, mg03 ***@***.***> wrote:
> tried both things no dice....
>
> i did do one other thing, i created a new folder structure with a diff
> projectname and copied the contents of the current project to the new
> project folder and then gb build works ... old project name alert_website ,
> new project name alert2web
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#722 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAAcA8jl8gF_BNBFSxSP2Hy-8z63GXlHks5r-juvgaJpZM4No0n8>
> .
>
|
i removed the username and some more identifiable info |
Ok, can you please copy the non working project to /tmp and try again. If
you can avoid editing the information that would be helpful
…On Mon, May 29, 2017 at 1:37 PM, mg03 ***@***.***> wrote:
i removed the username and some more identifiable info
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA-Qn2ujlCdcViExJXsMM3_1d3lj8ks5r-j1ggaJpZM4No0n8>
.
|
Still nothing .... |
Can you try
cd $PROJECT
gb list
and post the output
…On Mon, May 29, 2017 at 1:43 PM, mg03 ***@***.***> wrote:
TUSCA09UMLOC04M:alert_website mgjmi$ pwd
/tmp/alert_website
TUSCA09UMLOC04M:alert_website mgjmi$ DEBUG=. gb build
2017/05/28 20:40:38 depfile.go:184: loading depfile at "/tmp/alert_website/depfile"
2017/05/28 20:40:38 depfile.go:32: no depfile, nothing to do.
2017/05/28 20:40:38 context.go:319: project root "/tmp/alert_website"
2017/05/28 20:40:38 build.go:50: build duration: 167.355µs map[]
2017/05/28 20:40:38 context.go:303: removing work directory: /var/folders/tk/40ntfp_91gl9zbvytjx7zwgd_8h2q9/T/gb325556224
TUSCA09UMLOC04M:alert_website mgjmi$ ls bin
app.toml
Still nothing ....
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA1QVRAoi_6qoPU5gTJbbR5DMpo0Eks5r-j7ugaJpZM4No0n8>
.
|
|
Is your main package in the directory $PROJECT/src/cmd ?
…On Mon, May 29, 2017 at 1:58 PM, mg03 ***@***.***> wrote:
TUSCA09UMLOC04M:alert_website mgjmi$ DEBUG=. gb list
2017/05/28 20:57:01 depfile.go:184: loading depfile at "/tmp/alert_website/depfile"
2017/05/28 20:57:01 depfile.go:32: no depfile, nothing to do.
2017/05/28 20:57:01 context.go:319: project root "/tmp/alert_website"
cache
cache/memory
cache/redis
conf
2017/05/28 20:57:01 context.go:303: removing work directory: /var/folders/tk/40ntfp_91gl9zbvytjx7zwgd_8h2q9/T/gb179854692
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA092WXvlBdlCLSc8qw--9HJtj6Mmks5r-kJXgaJpZM4No0n8>
.
|
No
|
Try renaming alert_website to something else.
…On Mon, 29 May 2017, 14:12 mg03 ***@***.***> wrote:
No
ls /tmp/alert_website/src/
alert_website api cache conf utilities web
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA47YTStqNsRVn2T6hxRmLj3HLKh9ks5r-kW4gaJpZM4No0n8>
.
|
|
I'm sorry, I wasn't clear. I mean rename the main package, I belive is
called alert_website, not the project.
…On Mon, May 29, 2017 at 2:16 PM, mg03 ***@***.***> wrote:
mv alert_website alertweb123
DEBUG=. gb list
2017/05/28 21:15:47 depfile.go:184: loading depfile at "/tmp/alertweb123/depfile"
2017/05/28 21:15:47 depfile.go:32: no depfile, nothing to do.
2017/05/28 21:15:47 context.go:319: project root "/tmp/alertweb123"
cache
cache/memory
cache/redis
conf
2017/05/28 21:15:48 context.go:303: removing work directory: /var/folders/tk/40ntfp_91gl9zbvytjx7zwgd_8h2q9/T/gb088262917
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA8WTWz0CEiP3rKlWnO-yBhnpQeiRks5r-ka2gaJpZM4No0n8>
.
|
When i run a gb build , it does not generate the project binary nor does it generate the bin folder
The following is the project structure . (i have set DEBUG=true)
The text was updated successfully, but these errors were encountered: