jshenguru
c0aca26dd2
Extract correct version when using --with flag to replace Caddy core ( #216 )
2024-12-01 10:53:17 -07:00
Mohammed Al Sahaf
c548f44e2d
fix default build tags inclusion ( #213 )
...
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
2024-11-05 17:41:22 -05:00
Kévin Dunglas
c9fe5af515
chore: compile without nosql's support for Postgres and MySQL ( #210 )
...
* chore: compile without nosql's support for Postgres and MySQL
* Ignore lint
---------
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2024-11-05 14:37:14 -05:00
WeidiDeng
d7277dbc5d
Add --replace
for dependency replacement ( #186 )
...
* add --replace to change dependency version
* deduplicate codes
* update README.md
2024-05-29 14:51:37 -06:00
WeidiDeng
33a5925979
embed icon and version information to windows builds ( #184 )
...
* embed icon and version information to windows builds
* fix lint
2024-05-29 14:45:07 -06:00
WeidiDeng
639d0b1733
fix variable environment extraction ( #183 )
2024-05-09 19:12:15 -06:00
Mohammed Al Sahaf
85e12f87b2
bug: fix regression preventing -trimpath
and trim of debug symbols ( #182 )
...
* bug: fix regression preventing `-trimpath` and trim of debug symbols
* Update builder.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
---------
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2024-05-06 19:12:23 +03:00
Mohammed Al Sahaf
2887af6a01
feat: allow fs embedding with --embed
( #160 )
...
* feat: allow fs embedding with `--embed`
* code review
* remove utils/io.go
* don't shadow `err`
* add syntax and examples to README
2023-12-18 13:22:47 -07:00
Francis Lavoie
c9644d6e6b
builder: Ignore tidy errors ( #142 )
2023-05-09 13:58:48 -04:00
Mohammed Al Sahaf
5d0f23f07e
core: pass context.Context
to the command runner to adhere to timeouts, if set ( #134 )
2023-03-03 11:19:04 +00:00
Matthew Holt
2b5d89d9e5
Remove use of io/ioutil
2022-09-30 11:26:26 -06:00
Mohammed Al Sahaf
e6eb334d4e
core: add XCADDY_GO_MOD_FLAGS
env var to allow passing custom go mod
flags ( #113 )
2022-08-16 21:27:48 +00:00
Aapo Keskimölö
edc1f41778
Inject XCADDY_GO_BUILD_FLAGS
through go
operations ( #102 ) ( #110 )
...
* Extend XCADDY_GO_BUILD_FLAGS usage (#102 )
Commit 47f9ded5d8
is not sufficient alone to
ensure that all go modules are installed with write bit set because 'go mod'
or 'go get' might install modules as read-only, too.
If set, the environment variable is appended for the other go commands that
support build flags.
* Make running 'go' implicit for build environment
The method newCommand runs only go commands so let's make command 'go'
implicit and rename it to make it more verbose.
2022-08-16 19:19:15 +00:00
Aapo Keskimölö
47f9ded5d8
Add XCADDY_GO_BUILD_FLAGS env var ( #104 )
...
Add environment variable
XCADDY_GO_BUILD_FLAGS
to override default build arguments from environment (#102 ).
To support flags with variable arguments Unix-style quoting is supported.
2022-06-20 13:20:05 -06:00
Peter Magnusson
7abc7f5752
Do not use only hardcoded "go" ( #97 )
...
* fix: do not use only hardcoded "go"
* fixed comments and added env to readme
* move GetGo to an internal package
Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>
2022-04-25 10:13:12 -06:00
MisakaCloud
c7959560b5
Support dlv when debug enabled ( #81 )
...
* allow dlv when enable debug
* add comment
* merge two condition
* Update builder.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2022-02-16 13:26:25 -07:00
Ggicci
8c5d3f1cf6
Keep DWARF info by setting XCADDY_DEBUG=1 ( #62 )
...
* feat: add --debug option to build a debug output
* chore: renaming
* chore: update README
* fix: typo
* feat: introduce env XCADDY_DEBUG
* fix: remove unnecessary change
2021-07-03 17:57:17 -06:00
Kévin Dunglas
5734acdd58
Add XCADDY_SKIP_BUILD option ( #41 )
...
* feat: add XCADDY_NO_BUILD to not run go build
* Rename XCADDY_NO_BUILD to XCADDY_SKIP_BUILD
* fix rebase
2021-02-05 16:34:51 -07:00
Mohammed Al Sahaf
e7b19b13a2
Run go mod tidy
in the build environment ( #47 )
...
* Run `go mod tidy` in the build environment
As of go 1.16, the `go {build,test}` commands don't modify the go.mod and go.sum files (see: https://golang.org/issue/40728 ). We, therefore, have to run `go mod tidy` to ensure the go.mod and go.sum files are consistent with the module requirements.
Closes #46
* check the error of `go mod tidy`
2021-02-05 10:49:17 -07:00
jpughcs
b7fd102f41
Support go.mod replace version pinning ( #27 )
...
* support go.mod replace version pinning
* use string replace instead of regex
* Minor cleanups
Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
2020-08-10 12:27:38 -06:00
Matthew Holt
1d18c5862c
Rename ModulePath -> PackagePath
...
Technically they are packages to be imported, not necessarily paths to
the containing Go module.
2020-07-15 17:45:32 -06:00
Matthew Holt
3742b72df8
Optionally skip cleanup; fix cgo when race detector enabled
2020-07-15 17:44:06 -06:00
Matthew Holt
a1e17ca9b9
Honor CGO_ENABLED environment variable ( fix #17 )
2020-05-22 10:31:34 -06:00
Matthew Holt
4ce3d1db07
Add race detector support; update readme
2020-05-09 18:59:18 -06:00
Matthew Holt
1eaff742db
Disable timeouts by default, make configurable ( fix #15 )
2020-05-07 10:21:12 -06:00
Matthew Holt
9146f00342
Minor improvements; print go list errors, strip trailing slashes
2020-05-02 17:32:37 -06:00
Jason Song
262a495997
Make customized env effective ( #9 )
2020-04-28 11:07:25 -06:00
Matthew Holt
6f998dab69
Improved cross-platform support
2020-04-23 14:34:29 -06:00
Matthew Holt
fd8e902223
Support replacements and customizing the core version; update readme
2020-04-22 16:29:57 -06:00
Matthew Holt
dcc00b0892
Support context cancellation and cleanup
...
This should avoid leaving temporary build directories lingering after
Ctrl+C.
2020-04-13 12:22:23 -06:00
Matthew Holt
35c6866159
Improve exported API, update docs
2020-04-04 09:56:41 -06:00
Matthew Holt
f337ff945a
Update name to xcaddy
2020-04-02 08:35:27 -06:00
Matthew Holt
1cc8e08c16
Update CLI; change command to 'xcaddy'; update readme
2020-03-25 00:03:28 -06:00
Matthew Holt
40c0796cc2
Greatly lengthen exec timeouts... for now
2020-03-21 16:29:10 -06:00
Matthew Holt
362c34597d
Assume Caddy v2 if no semantic version is available
...
Useful if providing just a commit SHA
2020-03-21 16:27:26 -06:00
Matthew Holt
6004fc79b2
Initial commit
2020-03-21 14:31:29 -06:00