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 has been archived by the owner on Jun 25, 2022. It is now read-only.
Packr is unable to find boxes when using a string pointer as the packr.NewBox() path.
This code fails to create a box when packr is run:
package main
import (
"flag""fmt""os""github.com/gobuffalo/packr/v2"
)
funcmain() {
varconfigPath=flag.String("path", "./repack", "Relative path to the repack directory")
flag.Parse()
if*configPath=="" {
fmt.Println("You must provide the absolute path to your repack directory")
os.Exit(1)
}
box:=packr.NewBox(*configPath)
}
If the path to box : = packr.NewBox() is set to a string then everything works as expected.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Packr is unable to find boxes when using a string pointer as the
packr.NewBox()
path.This code fails to create a box when
packr
is run:If the path to
box : = packr.NewBox()
is set to a string then everything works as expected.The text was updated successfully, but these errors were encountered: