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

Closed
avoivo opened this Issue Dec 3, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@avoivo
Copy link

commented Dec 3, 2017

C:\Users\than\go\src\github.com\avoivo> buffalo new testapi --api
--> C:\Users\than\go\src\github.com\avoivo\testapi\.buffalo.dev.yml
--> C:\Users\than\go\src\github.com\avoivo\testapi\models\models.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\models\models_test.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\grifts\db.go
--> go get github.com/markbates/pop/...
--> database.yml
--> goimports -w C:\Users\than\go\src\github.com\avoivo\testapi\grifts\db.go C:\Users\than\go\src\github.com\avoivo\test
api\models\models.go C:\Users\than\go\src\github.com\avoivo\testapi\models\models_test.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\Dockerfile
--> C:\Users\than\go\src\github.com\avoivo\testapi\.dockerignore
--> go get -u golang.org/x/tools/cmd/goimports
--> go get -u github.com/motemen/gore
--> C:\Users\than\go\src\github.com\avoivo\testapi\README.md
--> C:\Users\than\go\src\github.com\avoivo\testapi\actions\actions_test.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\actions\app.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\actions\home.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\actions\home_test.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\actions\render.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\.codeclimate.yml
--> C:\Users\than\go\src\github.com\avoivo\testapi\.gitignore
--> C:\Users\than\go\src\github.com\avoivo\testapi\grifts\init.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\locales\all.en-us.yaml
--> C:\Users\than\go\src\github.com\avoivo\testapi\main.go
--> C:\Users\than\go\src\github.com\avoivo\testapi\templates\_flash.html
--> C:\Users\than\go\src\github.com\avoivo\testapi\templates\application.html
--> C:\Users\than\go\src\github.com\avoivo\testapi\templates\index.html
Usage:
  buffalo new [name] [flags]

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 github.com/golang/dep to your app

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

Info

C:\Users\than\go\src\github.com\avoivo> buffalo info
### Buffalo Version
v0.10.1

### 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 GORACE=
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_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config

### Node Version
v8.8.1

### NPM Version
5.5.1

### 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

@markbates

This comment has been minimized.

Copy link
Member

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.