Expected Behavior:
Vault compiles with OSS UI
Actual Behavior:
root@gaily1:~/src/github.com/hashicorp/vault# make dev-ui
==> Checking that code complies with gofmt requirements...
==> Checking that build is using go version >= 1.10...
go generate
==> Removing old directory...
==> Building...
Number of parallel builds: 1
--> linux/amd64: github.com/hashicorp/vault
1 errors occurred:
--> linux/amd64 error: exit status 2
Stderr: # github.com/hashicorp/vault/http
http/handler.go:92:123: undefined: assetFS```
Steps to Reproduce:
make bootstrapmake dev-uiWe are still working through the exact build process and should have the resolved shortly. In the meantime, you can run make static-assets before make dev-ui.
@chrishoffman Thanks.
Appears the folder structure pkg/web_ui also has to be created prior to running static-assets
EDIT: While it compiles.. binary fails to run. I am going to let you guys figure this out before trying v0.10.0-rc1 again
@fia5000 if you want you can build the docker container in scripts/cross and use that to build. I'm going to close this for now as this is something we know we need to do but haven't gotten to yet since it's just out.
I too encountered this issue today and found that running make static-dist instead of make static-assets before the make dev-ui resulted in a usable binary.
For reference, static-dist includes the ember-dist and static-assets targets.
To summarise the commands that I used against 5ddb2c3cb4608e7dd952a995d035703c50986944:
mkdir -p pkg/web_ui
make static-dist dev-ui
Most helpful comment
I too encountered this issue today and found that running
make static-distinstead ofmake static-assetsbefore themake dev-uiresulted in a usable binary.For reference,
static-distincludes theember-distandstatic-assetstargets.To summarise the commands that I used against 5ddb2c3cb4608e7dd952a995d035703c50986944: