Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a new buffalo project with the --api flag, fails on windows 10 #781

avoivo opened this Issue Dec 3, 2017 · 1 comment


None yet
2 participants
Copy link

commented Dec 3, 2017

C:\Users\than\go\src\\avoivo> buffalo new testapi --api
--> C:\Users\than\go\src\\avoivo\testapi\
--> C:\Users\than\go\src\\avoivo\testapi\models\models.go
--> C:\Users\than\go\src\\avoivo\testapi\models\models_test.go
--> C:\Users\than\go\src\\avoivo\testapi\grifts\db.go
--> go get
--> database.yml
--> goimports -w C:\Users\than\go\src\\avoivo\testapi\grifts\db.go C:\Users\than\go\src\\avoivo\test
api\models\models.go C:\Users\than\go\src\\avoivo\testapi\models\models_test.go
--> C:\Users\than\go\src\\avoivo\testapi\Dockerfile
--> C:\Users\than\go\src\\avoivo\testapi\.dockerignore
--> go get -u
--> go get -u
--> C:\Users\than\go\src\\avoivo\testapi\
--> C:\Users\than\go\src\\avoivo\testapi\actions\actions_test.go
--> C:\Users\than\go\src\\avoivo\testapi\actions\app.go
--> C:\Users\than\go\src\\avoivo\testapi\actions\home.go
--> C:\Users\than\go\src\\avoivo\testapi\actions\home_test.go
--> C:\Users\than\go\src\\avoivo\testapi\actions\render.go
--> C:\Users\than\go\src\\avoivo\testapi\.codeclimate.yml
--> C:\Users\than\go\src\\avoivo\testapi\.gitignore
--> C:\Users\than\go\src\\avoivo\testapi\grifts\init.go
--> C:\Users\than\go\src\\avoivo\testapi\locales\all.en-us.yaml
--> C:\Users\than\go\src\\avoivo\testapi\main.go
--> C:\Users\than\go\src\\avoivo\testapi\templates\_flash.html
--> C:\Users\than\go\src\\avoivo\testapi\templates\application.html
--> C:\Users\than\go\src\\avoivo\testapi\templates\index.html
  buffalo new [name] [flags]

      --api                  skip all front-end code and configure for an API server
      --ci-provider string   specify the type of ci file you would like buffalo to generate [none, travis, gitlab-ci] (d
efault "none")
      --db-type string       specify the type of database you want to use [postgres, mysql, sqlite3] (default "postgres"
      --docker string        specify the type of Docker file to generate [none, multi, standard] (default "multi")
  -f, --force                delete and remake if the app already exists
  -h, --help                 help for new
      --skip-pop             skips adding pop/soda to your app
      --skip-webpack         skips adding Webpack to your app
      --skip-yarn            skip to use npm as the asset package manalready exists
      --vcs string           specify the Version control system you would like to use [none, git, bzr] (default "git")
  -v, --verbose              verbosely print out the go get commands
      --with-dep             adds to your app

Error: remove C:\Users\than\go\src\\avoivo\testapi\templates\application.html: The process cannot access the f
ile because it is being used by another process.


C:\Users\than\go\src\\avoivo> buffalo info
### Buffalo Version

### Go Version
go version go1.9.2 windows/amd64

### Go Env
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\than\go
set GOROOT=C:\tools\go
set GOTOOLDIR=C:\tools\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\than\AppData\Local\Temp\go-build680148471=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_CFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config

### Node Version

### NPM Version

### Dep Status
dep Not Found

### PostgreSQL Version
PostgreSQL Not Found

### MySQL Version
MySQL Not Found

### SQLite Version
SQLite Not Found

@avoivo avoivo changed the title Creating a new buffalo project with the --api flag, fails in windows 10 Creating a new buffalo project with the --api flag, fails on windows 10 Dec 3, 2017

markbates pushed a commit that referenced this issue Dec 3, 2017

@markbates markbates added this to the 0.10.3 milestone Dec 3, 2017


This comment has been minimized.

Copy link

commented Dec 3, 2017

Will be in the v0.10.3 release.

@markbates markbates closed this Dec 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.