-
-
Notifications
You must be signed in to change notification settings - Fork 687
Comparing changes
Open a pull request
base repository: bazel-contrib/rules_go
base: v0.22.11
head repository: bazel-contrib/rules_go
compare: v0.23.0
Commits on Feb 26, 2020
-
Announce new releases [skip ci] (#2386)
Jay Conrod authoredFeb 26, 2020 Configuration menu - View commit details
-
Copy full SHA for b8d69ec - Browse repository at this point
Copy the full SHA b8d69ecView commit details -
go_googleapis: fix dependencies (#2388)
Re-generate the Gazelle patch after bazel-contrib/bazel-gazelle#717. Fixes #2387
Jay Conrod authoredFeb 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 0800d68 - Browse repository at this point
Copy the full SHA 0800d68View commit details -
Announce release v0.22.1 [skip ci] (#2390)
Jay Conrod authoredFeb 26, 2020 Configuration menu - View commit details
-
Copy full SHA for d7398c5 - Browse repository at this point
Copy the full SHA d7398c5View commit details
Commits on Mar 2, 2020
-
Remove testdata filegroups from com_github_golang_protobuf patch (#2394)
Fixes #2391
Jay Conrod authoredMar 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 87cc49a - Browse repository at this point
Copy the full SHA 87cc49aView commit details
Commits on Mar 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2a0e3a0 - Browse repository at this point
Copy the full SHA 2a0e3a0View commit details
Commits on Mar 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a6ce1c4 - Browse repository at this point
Copy the full SHA a6ce1c4View commit details
Commits on Mar 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 7432219 - Browse repository at this point
Copy the full SHA 7432219View commit details -
Announce release v0.22.2, v0.21.5 [skip ci] (#2407)
Jay Conrod authoredMar 19, 2020 Configuration menu - View commit details
-
Copy full SHA for 3fd6c64 - Browse repository at this point
Copy the full SHA 3fd6c64View commit details
Commits on Mar 20, 2020
-
Update bazel_toolchains for bazel 2.2.0 (#2408)
Jay Conrod authoredMar 20, 2020 Configuration menu - View commit details
-
Copy full SHA for d4f6c32 - Browse repository at this point
Copy the full SHA d4f6c32View commit details
Commits on Mar 24, 2020
-
go: add missing platforms from 'go tools dist list' (#2412)
This will add new targets in //go/platforms and //go/toolchains.
Jay Conrod authoredMar 24, 2020 Configuration menu - View commit details
-
Copy full SHA for 64f4431 - Browse repository at this point
Copy the full SHA 64f4431View commit details
Commits on Mar 25, 2020
-
go_embed_data: don't include srcs in GoLibrary or GoSource (#2413)
None of the attributes passed to go_embed_data rules are relevant for other rules embedding them. Include the output file as a generated source file, but don't pass other attributes. Fixes #2411
Jay Conrod authoredMar 25, 2020 Configuration menu - View commit details
-
Copy full SHA for efd8f91 - Browse repository at this point
Copy the full SHA efd8f91View commit details
Commits on Mar 30, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a339aa4 - Browse repository at this point
Copy the full SHA a339aa4View commit details
Commits on Apr 1, 2020
-
go_proto_library: fix formatting error in documentation (#2418)
Jay Conrod authoredApr 1, 2020 Configuration menu - View commit details
-
Copy full SHA for 16bdf71 - Browse repository at this point
Copy the full SHA 16bdf71View commit details
Commits on Apr 6, 2020
-
Set minimum supported Bazel version to 2.2.0 (#2419)
This only applies to the master branch, not to current release branches. This is needed for configuration transition support. 1.2.0 (the current minimum) and 2.1.0 (the version before 2.2.0) both have build failures triggered by transitions. For #2219
Jay Conrod authoredApr 6, 2020 Configuration menu - View commit details
-
Copy full SHA for bbdc18c - Browse repository at this point
Copy the full SHA bbdc18cView commit details
Commits on Apr 7, 2020
-
Add pull request template [skip ci] (#2425)
Jay Conrod authoredApr 7, 2020 Configuration menu - View commit details
-
Copy full SHA for 26ce1d7 - Browse repository at this point
Copy the full SHA 26ce1d7View commit details
Commits on Apr 9, 2020
-
Configuration menu - View commit details
-
Copy full SHA for b04b137 - Browse repository at this point
Copy the full SHA b04b137View commit details -
Announce rules_go v0.22.3, v0.21.6 [skip ci] (#2428)
Jay Conrod authoredApr 9, 2020 Configuration menu - View commit details
-
Copy full SHA for c08cffd - Browse repository at this point
Copy the full SHA c08cffdView commit details
Commits on Apr 14, 2020
-
Announce releases 0.21.7 and 0.22.4 [skip ci] (#2431)
Jay Conrod authoredApr 14, 2020 Configuration menu - View commit details
-
Copy full SHA for f0753e1 - Browse repository at this point
Copy the full SHA f0753e1View commit details
Commits on Apr 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9794aac - Browse repository at this point
Copy the full SHA 9794aacView commit details -
Update bazel_toolchains in WORKSPACE for bazel 3.0.0 (#2429)
Fixes #2430
Jay Conrod authoredApr 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 6d41742 - Browse repository at this point
Copy the full SHA 6d41742View commit details
Commits on Apr 16, 2020
-
Add missing Starlark files to “all_rules” targets. (#2434)
This is important for Stardoc, which insists on knowing about all transitively loaded Starlark files.
Configuration menu - View commit details
-
Copy full SHA for cf9c0ea - Browse repository at this point
Copy the full SHA cf9c0eaView commit details
Commits on Apr 17, 2020
-
Update documentation [skip ci] (#2438)
* Update README.rst * Update toolchains.rst * Update core.rst * Rename workspace.rst to dependencies.rst and update * Move roadmap to wiki * Move deprecation schedule to wiki * Delete obsolete vendoring documentation * Delete redundant go/tools/bazel documentation. * Delete obsolete builder documentation
Jay Conrod authoredApr 17, 2020 Configuration menu - View commit details
-
Copy full SHA for f9a4fb1 - Browse repository at this point
Copy the full SHA f9a4fb1View commit details -
go: use configuration transitions instead of aspect (#2414)
This changes how the goos, goarch, race, msan, static, and pure attributes of go_binary and go_test are implemented. Previously, the go_binary and go_test rules used an aspect on the deps and embed attributes. If any of the mode attributes listed above were set, the aspect declared additional output files and actions to generate them for the specified configuration. This approach had two significant problems. First, the aspect caused the analysis to be performed twice, wasting time and memory even in the case where no cross-compilation was needed. Second, the aspect was not compatible with conditional dependencies specified with select expressions: aspects run on the configured target graph, but the mode attributes could not affect Bazel's configuration. This change deletes the aspect and implements these attributes using a different mechanism: build settings and configuration transitions. A new package is added //go/config with a build setting for each attribute. Most settings are flags that may be set on the command-line. This is an alternative to --feature flags, which will be deprecated and eventually removed. The target //:go_config gathers build settings relevant to Go and provides a GoContextInfo (private). The target //:go_context_data depends on //:go_config, //:stdlib, //:nogo, and a few other standard dependencies. go_binary and go_test rules no longer need to depend on these targets directly. Go rules should now only need to depend on //:go_context_data and the Go toolchain. Unfortunately, neither //:go_context_data nor //:go_config can be part of the toolchain because the toolchain is always analyzed for the execution configuration, not the target configuration. Because of the simplified dependencies, the go_rule function is no longer needed by most rules. This change makes it possible to deprecate it. Fixes #1351 Fixes #2219 Updates #2302
Jay Conrod authoredApr 17, 2020 Configuration menu - View commit details
-
Copy full SHA for 3edc6d5 - Browse repository at this point
Copy the full SHA 3edc6d5View commit details -
* go/tools/bazel: use empty.txt as test data instead of README.md which was deleted. * tests/legacy/build_constraints: 'extern const', not 'const const'.
Jay Conrod authoredApr 17, 2020 Configuration menu - View commit details
-
Copy full SHA for da7f361 - Browse repository at this point
Copy the full SHA da7f361View commit details
Commits on Apr 20, 2020
-
Fix com_google_protobuf examples in documentation [skip ci] (#2447)
Fixes #2441
Jay Conrod authoredApr 20, 2020 Configuration menu - View commit details
-
Copy full SHA for af0f76b - Browse repository at this point
Copy the full SHA af0f76bView commit details -
go_binary, go_test: add gotags attribute (#2440)
The gotags attribute sets which build tags are enabled when evaluting build constraints. This is equivalent to setting --@io_bazel_rules_go//go/config:tags on the command line. Fixes #1351
Jay Conrod authoredApr 20, 2020 Configuration menu - View commit details
-
Copy full SHA for 8f4ebbd - Browse repository at this point
Copy the full SHA 8f4ebbdView commit details
Commits on Apr 21, 2020
-
go: remove searchpaths and searchpath from GoArchive and GoArchiveData (
Jay Conrod authoredApr 21, 2020 Configuration menu - View commit details
-
Copy full SHA for 41fd82c - Browse repository at this point
Copy the full SHA 41fd82cView commit details
Commits on Apr 22, 2020
-
go: remove mode prefixes and import paths from output file paths (#2453)
Fixes #2448
Jay Conrod authoredApr 22, 2020 Configuration menu - View commit details
-
Copy full SHA for 7a2ed94 - Browse repository at this point
Copy the full SHA 7a2ed94View commit details
Commits on Apr 23, 2020
-
proto: upgrade go_proto_library to support APIv2 (#2455)
* Added org_golang_google_protobuf at v1.21.0 to go_rules_dependencies. This contains the new protobuf runtime. It doesn't seem like any *_gen rules are needed, so just using the gazelle patch for now. * Upgraded com_github_golang_protobuf to v1.4.0. The packages here are wrappers org_golang_google_protobuf. Newly generated code should work with the old interface. The *_gen targets are still in place, but they're simpler. * Added new dependencies for packages generated with //proto:go_proto, //proto:go_grpc, and //proto:go_proto_bootstrap, since the proto compiler imports more runtime packages. * We're still using the compiler from com_github_golang_protobuf. It's a wrapper for the new one. The new one doesn't support gRPC, and the gRPC proto compiler doesn't exist yet. See https://github.com/protocolbuffers/protobuf-go/releases#v1.20-grpc-support. Updates #2395
Jay Conrod authoredApr 23, 2020 Configuration menu - View commit details
-
Copy full SHA for 2634df7 - Browse repository at this point
Copy the full SHA 2634df7View commit details
Commits on Apr 27, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2a00556 - Browse repository at this point
Copy the full SHA 2a00556View commit details -
Fix small typo and obsolete expressions. (#2459)
Fix small typo and obsolete expressions. Fixes #2458
Configuration menu - View commit details
-
Copy full SHA for f1fabaf - Browse repository at this point
Copy the full SHA f1fabafView commit details
Commits on Apr 29, 2020
-
doc: add warning to crosstool.rst and fix links [skip ci] (#2462)
Jay Conrod authoredApr 29, 2020 Configuration menu - View commit details
-
Copy full SHA for 8f3e396 - Browse repository at this point
Copy the full SHA 8f3e396View commit details
Commits on May 1, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 9900185 - Browse repository at this point
Copy the full SHA 9900185View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbbbfde - Browse repository at this point
Copy the full SHA fbbbfdeView commit details
Commits on May 4, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 3cf2812 - Browse repository at this point
Copy the full SHA 3cf2812View commit details -
go_binary: use file name less likely to be a prefix (#2466)
A binary named "foo" will now create the executable "foo_/foo" to avoid conflicting with subdirectories named "foo". go.declare_file will no longer cause this problem when only path is specified. Fixes #2463
Jay Conrod authoredMay 4, 2020 Configuration menu - View commit details
-
Copy full SHA for 695da59 - Browse repository at this point
Copy the full SHA 695da59View commit details
Commits on May 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for a07c667 - Browse repository at this point
Copy the full SHA a07c667View commit details -
nogo: migrate to configuration transitions (#2473)
The nogo binary to use is now specified using a Starlark flag. For example: bazel build --@io_bazel_rules_go//go/config:nogo=@io_bazel_rules_go//:tools_nogo //:hello .bazelrc is now the recommended way to set this flag. Setting nogo in go_register_toolchains will still work, though that function may be deprecated soon. The flag overrides the go_register_toolchains argument when both are set. Updates #2374 Fixes #2470
Jay Conrod authoredMay 5, 2020 Configuration menu - View commit details
-
Copy full SHA for 8bdd81a - Browse repository at this point
Copy the full SHA 8bdd81aView commit details -
nogo: stop using go_tool_library (#2474)
nogo binaries no longer depend on themselves. Since #2473, the nogo rule uses a configuration transition to disable nogo for itself and its dependencies. This means there's no longer any need for go_tool_library rules for analyzers and utility packages in org_golang_x_tools. So with this change, tools_nogo depends on the regular go_library analyzers. The documentation is updated not to mention go_tool_library anymore. Additionally, this change replaces the go_tool_library targets in org_golang_x_tools with aliases to the go_library targets. So nogo targets that depends on the old symbols should work. Fixes #2374
Jay Conrod authoredMay 5, 2020 Configuration menu - View commit details
-
Copy full SHA for 8e6cfa5 - Browse repository at this point
Copy the full SHA 8e6cfa5View commit details
Commits on May 7, 2020
-
Upgrade bazel_toolchains in WORKSPACE (#2477)
Jay Conrod authoredMay 7, 2020 Configuration menu - View commit details
-
Copy full SHA for 745de50 - Browse repository at this point
Copy the full SHA 745de50View commit details -
Drop support for unsupported Go versions (lower than 1.13) (#2478)
Jay Conrod authoredMay 7, 2020 Configuration menu - View commit details
-
Copy full SHA for 0a93be4 - Browse repository at this point
Copy the full SHA 0a93be4View commit details
Commits on May 8, 2020
-
Revert changes migrating nogo to configuration transitions (#2481)
This rolls back #2473 and #2474 due to #2479, which is caused by bazelbuild/bazel#11291. There doesn't seem to be a way to work around that, and I don't want to hold the release back any longer. Reopens #2374 Reopens #2470
Jay Conrod authoredMay 8, 2020 Configuration menu - View commit details
-
Copy full SHA for c0696e4 - Browse repository at this point
Copy the full SHA c0696e4View commit details -
nogo: transition to default mode settings (#2482)
nogo now uses an incoming-edge transition to reset all Go build settings to their default values. This prevents nogo from being built with an unusual link mode, as well as other issues. This change uses some code from #2473, but it doesn't change how nogo fits into the dependency graph. Fixes #2470
Jay Conrod authoredMay 8, 2020 Configuration menu - View commit details
-
Copy full SHA for bc27740 - Browse repository at this point
Copy the full SHA bc27740View commit details -
tests/integration/gazelle: test that gazelle builds and runs (#2483)
catch errors building and running Gazelle in the future.
Jay Conrod authoredMay 8, 2020 Configuration menu - View commit details
-
Copy full SHA for ce51edf - Browse repository at this point
Copy the full SHA ce51edfView commit details -
nogo: fix nil pointer dereference for nilness checker (#2484)
Fixes #2480
Jay Conrod authoredMay 8, 2020 Configuration menu - View commit details
-
Copy full SHA for 28dd92b - Browse repository at this point
Copy the full SHA 28dd92bView commit details
Commits on May 12, 2020
-
Avoid use of run_shell in bazel rule. (#2488)
run_shell requires bash which is not available on Windows without a msys installation. The shell was only used for "&&" anyway. We can just use two separate actions. -trimpath requires an absolute path. On Windows we build a batch file to expand %cd%. On Unixes we can keep using run_shell.
Configuration menu - View commit details
-
Copy full SHA for 280a1ed - Browse repository at this point
Copy the full SHA 280a1edView commit details
Commits on May 13, 2020
-
Update dependencies for v0.23.0 release (#2490)
Jay Conrod authoredMay 13, 2020 Configuration menu - View commit details
-
Copy full SHA for ab18b41 - Browse repository at this point
Copy the full SHA ab18b41View commit details -
Set RULES_GO_VERSION to 0.23.0 (#2495)
Jay Conrod authoredMay 13, 2020 Configuration menu - View commit details
-
Copy full SHA for b2a2d93 - Browse repository at this point
Copy the full SHA b2a2d93View commit details
There are no files selected for viewing