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

upgrade build causes could not find folder for box:(projectpath)/actions/templates #660

Closed
u007 opened this issue Sep 25, 2017 · 2 comments

Comments

@u007
Copy link
Member

u007 commented Sep 25, 2017

iam upgrading from 0.9.3 to 0.9.4

$ GOOS=linux buffalo build -o bin/heroku
...
...
--> cleaning up build
----> cleaning up buffalo_build_main.go
----> cleaning up a
----> cleaning up a/a.go
----> cleaning up a/database.go
----> cleaning up buffalo_build_main.go
Usage:
  buffalo build [flags]

Aliases:
  build, b, bill

Flags:
  -e, --extract-assets   extract the assets and put them in a distinct archive
  -h, --help             help for build
      --ldflags string   set any ldflags to be passed to the go build
  -o, --output string    set the name of the binary (default "bin/ossdc")
  -s, --static           build a static binary using  --ldflags '-linkmode external -extldflags "-static"' (USE FOR CGO)
  -t, --tags string      compile with specific build tags

Error: could not find folder for box: $GOPATH/src/projectname/actions/templates

i have recently changed to use "dep"

@markbates
Copy link
Member

That errors means somewhere in your code you are doing something like packr.NewBox("./templates") but you don't have a templatesfolder. so you should probably removed the unneededpackrstatement, or add atemplates` folder in the right place.

@u007
Copy link
Member Author

u007 commented Sep 26, 2017

thank you so much :)
i found the issue in one of my deep layer actions

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