Commit Graph

201 Commits

Author SHA1 Message Date
des
a90823eba4 自动查找实现
Some checks failed
Wire Tests / build (1.25.x, macos-latest) (push) Has been cancelled
Wire Tests / build (1.25.x, ubuntu-latest) (push) Has been cancelled
Wire Tests / build (1.25.x, windows-latest) (push) Has been cancelled
但是自动收集到数组是个超级糟糕的需求。糟糕到我认为需要另起炉灶。
2026-02-24 20:55:18 +08:00
Robert Findley
9c25c9016f README: add a note that wire is no longer maintained (#434)
Some checks failed
Wire Tests / build (1.25.x, macos-latest) (push) Has been cancelled
Wire Tests / build (1.25.x, ubuntu-latest) (push) Has been cancelled
Wire Tests / build (1.25.x, windows-latest) (push) Has been cancelled
Wire was archived by an automatic process because it was not being
maintained. Unfortunately, it's true that there is no one maintaining
wire, and we should make this clear in the README before re-archiving.
2025-08-22 09:52:05 -04:00
Robert Findley
5c5c92a1c5 all: update the x/tools dependency to fix the build with Go 1.25 (#432)
An unfortunate bug caused a number of packages in old x/tools versions
to fail to build with Go 1.25 (https://go.dev/issue/74462). Fix this
minimally by updating to the lowest patched version with the fix:
v0.24.1. This should allow wire to continue building with the same range
of Go versions as it could build with before (down to 1.19).

Also:
- Update the go.mod go directive to Go 1.19 to allow for module graph
  pruning, and to be consistent with the minimum build version.
- Fix a test that is broken in recent Go versions due to an error
  message change.
- Update tests to run on Go 1.25.x (the most recent version of Go).
- Remove coverage, since coverage upload wasn't working anyway.

Fixes #431
2025-08-21 10:01:40 -04:00
Todd Treece
e57deea2f8 all: update golang.org/x/tools dependency to support Go v1.22.0 (#401) 2024-02-07 09:25:46 -08:00
Stanley Chen
0675cdc919 Revert "Update dependencies to support Generics (#360)" (#365)
This reverts commit 4aee85e4ce.
2022-06-20 10:14:24 +08:00
Enrique Fueyo
4aee85e4ce Update dependencies to support Generics (#360)
* feat(copy_ast): add ast.IndexListExpr case

* feat(go.mod): add dependencies (golang.org/x/tools v0.1.0 => v0.1.10)
2022-06-19 17:37:05 -07:00
wirekang
79660af943 README: fix install instructions on tutorial (#357) 2022-05-26 22:32:31 -07:00
Giau. Tran Minh
f5e937daa9 fix: run wire with -mod=mod (#353)
* fix: run wire with -mod=mod

* chore: update test with mod flag
2022-05-26 22:31:39 -07:00
Russ Cox
9d78e0ad8c README: fix install instructions (#339)
go get p has been replaced by go install p@latest.
2022-01-06 19:25:54 -08:00
Eli Bendersky
2f70a008e2 Fix build badge link in README (#317) 2021-08-31 08:30:57 -07:00
Robert van Gent
3b6fb78a3f tests: disable apidiff check (#316) 2021-08-30 17:57:05 -07:00
Robert van Gent
7e8af29048 doc: fix badge in readme (#315) 2021-08-30 16:32:22 -07:00
Robert van Gent
233b341f94 doc: fix badge in readme (#314) 2021-08-30 16:31:21 -07:00
Robert van Gent
3fd3a427dd doc: fix badge in readme (#313) 2021-08-30 16:28:34 -07:00
Robert van Gent
ae4e74aa6b all: update stale refs to Travis (#312) 2021-08-30 16:16:39 -07:00
Robert van Gent
737d4615ed all: fix Github Workflow for tests, drop Travis 2021-08-30 15:21:53 -07:00
Robert van Gent
8b20581338 all: update record/replay files for new version of go (#310) 2021-08-30 13:35:47 -07:00
Robert van Gent
e23bb7109a all: try to fix test workflow (#308) 2021-08-30 13:13:41 -07:00
Robert van Gent
cb1364cdf1 all: add a Github Workflow to run tests (#307) 2021-08-30 13:01:23 -07:00
Robert van Gent
d07cde0df9 update to go 1.16 (#281) 2021-02-17 10:27:44 -08:00
kzh125
0ac845078c docs: fix incorrect generated code in example (#277)
Should be "return foobarbaz.Baz{}, err"
2021-01-25 17:57:54 -08:00
Luca Steeb
a58291c0b8 internal/wire: use full go run command in go:generate comment (#268)
Change the go:generate command to use the full go run ... command
to ensure the version specified in the current go module is used
instead of the global binary.

Fixes #160
2021-01-25 17:55:11 -08:00
Ross Light
19bf7dafc5 README: add link to GitHub Discussions (#273) 2020-12-08 16:24:17 -08:00
Ross Light
d3585c5243 docs: add FAQ for explicit binds (#267)
Updates #242
2020-11-28 16:31:21 -08:00
Eli Bendersky
31708f3b2e doc: update README to point to issues for questions (#264) 2020-11-04 13:36:25 -08:00
Matt Wlazlo
523d8fbe88 Permit specifying build tags for analysis (#252)
Fixes #251
2020-07-09 08:41:00 -07:00
Taiki Fukui
8d4ff5b1ae docs: fix syntax error (#255) 2020-07-04 09:07:18 -07:00
ajjensen13
4d5ab743af internal/wire: copy doc comment for generated injectors (#254)
Fixes #244
2020-06-11 08:06:02 -07:00
Aleksandr Razumov
978b7803d3 internal/wire: remove unused method (#249) 2020-05-24 08:25:52 -07:00
Jason Song
ff891bb6d8 cmd/wire: simplify gather append (#248) 2020-05-04 08:36:46 -07:00
Dmitry Savintsev
fda113507a internal/wire: fix panic in objectCache.processExpr (#236) 2020-01-10 10:10:27 -08:00
Ahmed
578b29ef42 all: remove unused dependencies (#228) 2019-12-11 10:11:01 -08:00
Ross Light
b730ad0fbf internal/wire: use set to determine which argument to use in zero-call injectors (#223)
Fixes #222
2019-11-27 15:23:39 -08:00
Ross Light
a5347c86bc internal/wire: fix crash when giving wire.Struct a bad first argument (#220) 2019-11-11 11:06:03 -08:00
Ross Light
0d3b2ebd4a internal/wire: mark tests as parallelizable (#218) 2019-10-25 15:00:03 -07:00
Eli Bendersky
f240b7ac70 README: reflect new project status (#217) 2019-10-05 07:58:47 -07:00
Jose Gil
55a93fac11 cmd: Add --output_file_prefix, which sets a prefix for the output file name "wire_gen.go" 2019-09-25 08:59:48 -07:00
Robert van Gent
c385f07c5d wire: wire.FieldsOf should not provide pointer to field type for non-pointer structs (#210) 2019-09-05 14:17:17 -07:00
Robert van Gent
f85ec5c4a6 all: enable go 1.13 (#212) 2019-09-05 11:50:57 -07:00
Robert van Gent
2b7d1205a1 wire: FieldsOf now provides a pointer to the field type as well as the actual field type (#209) 2019-09-03 12:57:57 -07:00
Ariel Mashraki
66f78fc846 internal/wire: replace keyword list with token api (#203) 2019-07-16 09:00:00 -07:00
Eli Bendersky
2f518a0d93 Update README to use wording from annoucement w.r.t. beta (#199) 2019-06-18 13:09:35 -07:00
shantuo
8c5af0eafa change project status (#198) 2019-06-18 11:49:16 -07:00
shantuo
89cb901fdf document wire.Struct first argument (#197) 2019-06-17 17:27:07 -07:00
shantuo
93b1ce745f doc: add guide to use the wire:"-" tag (#195) 2019-06-11 15:35:05 -07:00
Y.Horie
000df02f3d parse: use reflect.StructTag to detect wire tags #179 (#181) 2019-06-03 14:00:48 -07:00
Robert van Gent
b5d7d7864b wire: remove color in wire show (#190)
Fixes #189
2019-05-29 15:02:06 -07:00
Robert van Gent
89bcaa23b9 wire: improve color output to term by using fatih/color (#186) 2019-05-29 11:46:31 -07:00
shantuo
ed1f30e1e8 docs: add FieldsOf to the guide (#159) 2019-05-17 16:02:42 -07:00
shantuo
cbfca74d8a wire: support using '-' tag to prevent filling struct fields (#163) 2019-05-17 15:56:42 -07:00