You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 6, 2020. It is now read-only.
gb build does not create bin folder and binary in bin folder #722
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
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>
.
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
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>
.
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>
> .
>
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>
.
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.
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
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
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>
.
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>
> .
>
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>
.
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>
.
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>
.
Activity
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
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
gb buildand things were fine till like a couple of hours ago when I ran using race flag like sogb build -f -F -raceand since then whenever I rangb buildit did not generate a new binarydavecheney commentedon May 29, 2017
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
ok thanx for the tip on race enabled build
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
https://gist.github.com/mg03/8dfb4aec023145898c90804d04f1c817
If you cant see it let me know
davecheney commentedon May 29, 2017
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
http://jmp.sh/3yoR2Eh
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
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
davecheney commentedon May 29, 2017
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
i removed the username and some more identifiable info
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
Still nothing ....
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
No
davecheney commentedon May 29, 2017
mg03 commentedon May 29, 2017
davecheney commentedon May 29, 2017