Hello. I am trying to figure out how to use xcaddy. I am specifically interested in trying the json-schema but unfortunately I am a bit overwhelmed and confused by GitHub and how installs work from there.
So far what I have done is:
Installed Visual Studio Code
Installed Go (go version go1.14.3 windows/amd64)
DL/Installed(?) xcaddy to C:\Users\jfire\Go\src\github.com\caddyserver\xcaddy
DL/Installed(?) the json-schema to C:\Users\jfire\Go\caddy-json-schema
When I try to run xcaddy
I get the following:
2020/06/01 08:44:48 [INFO] Temporary folder: C:\Users\jfire\AppData\Local\Temp\buildenv_2020-06-01-0844.912429335
2020/06/01 08:44:48 [INFO] Writing main module: C:\Users\jfire\AppData\Local\Temp\buildenv_2020-06-01-0844.912429335\main.go
2020/06/01 08:44:48 [INFO] Initializing Go module
2020/06/01 08:44:48 [INFO] exec (timeout=10s): C:\Go\bin\go.exe mod init caddy
go: creating new go.mod: module caddy
2020/06/01 08:44:48 [INFO] Replace github.com/abiosoft/caddy-json-schema => C:\Users\jfire\Go\caddy-json-schema
2020/06/01 08:44:48 [INFO] exec (timeout=10s): C:\Go\bin\go.exe mod edit -replace github.com/abiosoft/caddy-json-schema=C:\Users\jfire\Go\caddy-json-schema
2020/06/01 08:44:48 [INFO] Pinning versions
2020/06/01 08:44:48 [INFO] exec (timeout=0s): C:\Go\bin\go.exe get -d -v github.com/caddyserver/caddy/v2
go: github.com/caddyserver/caddy/v2 upgrade => v2.0.0
2020/06/01 08:44:49 [INFO] Build environment ready
2020/06/01 08:44:49 [INFO] Building Caddy
2020/06/01 08:44:49 [INFO] exec (timeout=0s): C:\Go\bin\go.exe build -o C:\Users\jfire\Go\caddy-json-schema\caddy -ldflags -w -s -trimpath
go: found github.com/abiosoft/caddy-json-schema in github.com/abiosoft/caddy-json-schema v0.0.0-00010101000000-000000000000
2020/06/01 08:44:54 [INFO] Build complete: ./caddy
2020/06/01 08:44:54 [INFO] Cleaning up temporary folder: C:\Users\jfire\AppData\Local\Temp\buildenv_2020-06-01-0844.912429335
2020/06/01 08:44:54 [INFO] Running [./caddy]
**2020/06/01 08:44:54 [ERROR] exec: "./caddy": file does not exist**
So I downloaded the caddy server 2.0 and threw the .exe into the same folder. Now when I run xcaddy json-schema
I get:
2020/06/01 08:47:04 [INFO] Temporary folder: C:\Users\jfire\AppData\Local\Temp\buildenv_2020-06-01-0847.315475727
2020/06/01 08:47:04 [INFO] Writing main module: C:\Users\jfire\AppData\Local\Temp\buildenv_2020-06-01-0847.315475727\main.go
2020/06/01 08:47:04 [INFO] Initializing Go module
2020/06/01 08:47:04 [INFO] exec (timeout=10s): C:\Go\bin\go.exe mod init caddy
go: creating new go.mod: module caddy
2020/06/01 08:47:04 [INFO] Replace github.com/abiosoft/caddy-json-schema => C:\Users\jfire\Go\caddy-json-schema
2020/06/01 08:47:04 [INFO] exec (timeout=10s): C:\Go\bin\go.exe mod edit -replace github.com/abiosoft/caddy-json-schema=C:\Users\jfire\Go\caddy-json-schema
2020/06/01 08:47:04 [INFO] Pinning versions
2020/06/01 08:47:04 [INFO] exec (timeout=0s): C:\Go\bin\go.exe get -d -v github.com/caddyserver/caddy/v2
go: github.com/caddyserver/caddy/v2 upgrade => v2.0.0
2020/06/01 08:47:05 [INFO] Build environment ready
2020/06/01 08:47:05 [INFO] Building Caddy
2020/06/01 08:47:05 [INFO] exec (timeout=0s): C:\Go\bin\go.exe build -o C:\Users\jfire\Go\caddy-json-schema\caddy -ldflags -w -s -trimpath
go: found github.com/abiosoft/caddy-json-schema in github.com/abiosoft/caddy-json-schema v0.0.0-00010101000000-000000000000
2020/06/01 08:47:07 [INFO] Build complete: ./caddy
2020/06/01 08:47:07 [INFO] Cleaning up temporary folder: C:\Users\jfire\AppData\Local\Temp\buildenv_2020-06-01-0847.315475727
2020/06/01 08:47:07 [INFO] Running [./caddy json-schema]
**[ERROR] 'json-schema' is not a recognized subcommand; see 'caddy help'**
**2020/06/01 08:47:07 [ERROR] exit status 1**
Iām really confused about where these files are supposed to āGoā (pun intended). Iāve never used GitHub before aside from following some tutorials and just copying and pasting into command line. I think āGoā with itās path configuration is part of my problem too.
How can I get this to work and get a vscode? What am I missing?