dependabot[bot]
30a557d325
build(deps): bump golangci/golangci-lint-action from 5 to 6 ( #190 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-02 01:21:57 +03:00
amarevite
624684efc7
fix spelling error in readme ( #189 )
2024-06-01 00:43:10 -04:00
Francis Lavoie
dbedcb694e
Update the README as per #186 ( #187 )
2024-05-29 16:09:42 -06: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
Meng Zhuo
12718b992e
ci/cd: add riscv64 binary ( #185 )
2024-05-23 10:11:44 +03:00
WeidiDeng
639d0b1733
fix variable environment extraction ( #183 )
2024-05-09 19:12:15 -06:00
WeidiDeng
bff687835e
add ".exe" when cross compiling for windows ( #179 )
...
* add ".exe" when cross compiling for windows
* add ".exe" when cross compiling for windows or on windows without cross-compiling
* wait until 1.23 is released
2024-05-06 20:38:01 +03: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
dependabot[bot]
f99151eee9
build(deps): bump golangci/golangci-lint-action from 4 to 5 ( #180 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 01:14:48 +03:00
WeidiDeng
743ce51c13
execute module replacement in a single command ( #178 )
...
* execute module replacement in a single command
* remove empty line
2024-04-06 16:53:19 +03:00
dependabot[bot]
dcaaa7302c
build(deps): bump golangci/golangci-lint-action from 3 to 4 ( #176 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-01 17:13:52 -05:00
Mohammed Al Sahaf
d6f5a3e6c3
core: always inject the nobadger
build tag ( #173 )
2024-02-19 15:16:51 +03:00
Francis Lavoie
51aadd62b7
ci: Update Go versions ( #172 )
2024-02-15 19:00:03 -05:00
dependabot[bot]
bffc0f1275
build(deps): bump actions/cache from 3 to 4 ( #170 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-01 18:35:09 -05:00
dependabot[bot]
a36cef4d93
build(deps): bump github.com/Masterminds/semver/v3 from 3.2.0 to 3.2.1 ( #167 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 15:32:27 -05:00
dependabot[bot]
92e89f3f34
build(deps): bump actions/upload-artifact from 3 to 4 ( #164 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2024-01-11 15:32:04 -05:00
P. Radha Krishna
7e353c66d8
chore: Added gomod config to dependabot ( #148 )
...
Co-authored-by: RadhaKrishna <radha.peteti@appdynamics.com>
2024-01-11 15:28:12 -05:00
Mohammed Al Sahaf
b7bd0fe076
ci: ensure short-sha is exported correctly on all platforms
2024-01-02 10:49:11 +03:00
dependabot[bot]
d8b006a093
build(deps): bump actions/setup-go from 4 to 5 ( #165 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-02 10:15:55 +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
CaledoniaProject
a38621145f
Update README.md ( #162 )
...
Remove the dollar sign to make copy paste easier in terminal.
2023-12-18 12:18:24 -07:00
AJ ONeal
18eadf4260
doc: fix typo '-w s' => '-w -s' ( #156 )
2023-10-24 13:18:02 -04:00
dependabot[bot]
f42cc51e4b
build(deps): bump goreleaser/goreleaser-action from 4 to 5 ( #153 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-01 19:35:33 -04:00
dependabot[bot]
cf4f080d1e
build(deps): bump actions/checkout from 3 to 4 ( #154 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-01 19:35:26 -04:00
P. Radha Krishna
54de4e334a
ci: Update Go version in CI to 1.21 ( #149 )
...
* chore: update Go version in CI
Co-authored-by: RadhaKrishna <radha.peteti@appdynamics.com>
2023-08-12 10:23:10 +00:00
WeidiDeng
4227917de2
check if context has a deadline ( #146 )
2023-06-24 22:59:28 -04:00
Francis Lavoie
c9644d6e6b
builder: Ignore tidy errors ( #142 )
2023-05-09 13:58:48 -04:00
dependabot[bot]
ae5637008a
Bump actions/setup-go from 3 to 4 ( #138 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-02 00:36:32 -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
Emily Lange
421d60bdf1
ci: fix set-output
deprecation ( #132 )
2023-02-08 17:00:26 -05:00
Emily Lange
4fb78a1df3
ci: enable dependabot to keep Actions versions up-to-date ( #133 )
2023-02-08 16:23:27 -05:00
Mohammed Al Sahaf
2bdd694700
chore: update Go version in CI ( #131 )
...
* chore: update Go version in CI
* update linter Action version
2023-02-07 11:16:42 +00:00
Francis Lavoie
661655cf05
Add support for setcap from build
command ( #129 )
2023-02-06 13:26:33 -05:00
Matthew Holt
e0ed12b135
readme: Add pro tip about manual builds
2022-10-05 18:49:31 -06:00
Matthew Holt
2b5d89d9e5
Remove use of io/ioutil
2022-09-30 11:26:26 -06:00
Matthew Holt
e09becb9d1
Ignore vendor folder with mod=readonly
2022-09-30 11:26:05 -06:00
Matthew Holt
e4c5f53dd2
Don't include version in replacement source
...
Follow-up to #69
I had a situation where caddy/v2 v2.4.6 was in my go.mod and a replace
on it to use local caddy repo.
When I ran `xcaddy run` to test a caddy module, it failed to run because
the replace included the version v2.4.6, even though somehow the buildenv
go.mod had v2.6.1 (the latest), and the replace directive specified
@v2.4.6 only, so the replacement didn't happen.
I don't think versions in the replacement source/origin are
really that useful for xcaddy.
If experience proves this wrong, we can figure out a better solution.
2022-09-28 10:25:41 -06:00
ydylla
25c412f1ec
Always prepend caddy command with dot ( #117 )
...
Fix xcaddy run on windows with go 1.19
See https://github.com/golang/go/issues/43724
2022-09-12 13:41:27 -06:00
Francis Lavoie
0bd3c1dfd5
README: Add example for building from a github fork ( #115 )
2022-09-01 17:43:36 -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
Matthew Holt
979de371dd
Remove GO111MODULE
...
Ignored as of Go 1.17
2022-08-05 10:06:15 -06:00
Matthew Holt
7577d60f61
Tolerate module file paths with @ in them
...
But version must also be specified to disambiguate.
Fix #109
2022-07-29 16:49:34 -06: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
Mohammed Al Sahaf
a83fac18bf
refactor: swap use html/template for text/template ( #103 )
2022-06-12 17:58:35 +00:00
Francis Lavoie
9cc6040a09
chore: Fix Debian install instructions
...
See https://github.com/caddyserver/dist/issues/83 for context
2022-05-17 11:07:12 -04: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
Francis Lavoie
71ce25d1a2
Prevent main Caddy module from upgrading from adding a plugin ( #93 )
...
* Prevent main Caddy module from upgrading from adding a plugin
Fixes #54
* Better comment
2022-04-07 17:07:11 -06:00
Francis Lavoie
7d6084b6d7
Emit main.go contents to log; update CI ( #95 )
...
* Log out main.go contents
* Ignore `caddy` binary when using `./xcaddy` for testing
* Update CI, switch linter to match Caddy repo
2022-04-07 16:33:47 -06:00