Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

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

Closed
avoivo opened this issue Dec 3, 2017 · 1 comment
Closed
Milestone

Comments

@avoivo
Copy link

avoivo 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 markbates added this to the 0.10.3 milestone Dec 3, 2017
@markbates
Copy link
Member

Will be in the v0.10.3 release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants