Граф коммитов

51 Коммитов

Автор SHA1 Сообщение Дата
Gopher Robot 2d47ceb269 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: If52cbad4c257f528178b69638f0d1e1f2d5da810
Reviewed-on: https://go-review.googlesource.com/c/exp/+/626481
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-11-08 19:04:13 +00:00
Gopher Robot 225e2abe05 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: Ia7d9ea1a17c8ac37e5c48bd44aa629082490a62c
Reviewed-on: https://go-review.googlesource.com/c/exp/+/617664
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-10-04 19:09:24 +00:00
Gopher Robot 701f63a606 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I09a64ed108f6ad44c34f8cfdd56c98e3a65358ab
Reviewed-on: https://go-review.googlesource.com/c/exp/+/611956
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: David Chase <drchase@google.com>
2024-09-09 16:14:29 +00:00
Gopher Robot 0cdaa3abc0 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I61a264215ae88013ad2f5d5ff1a81b0650f4b212
Reviewed-on: https://go-review.googlesource.com/c/exp/+/603598
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org>
2024-08-08 15:25:45 +00:00
Gopher Robot 46b078467d go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I4f40e298dbdf51e0d0089de6f5c11b5e39b80517
Reviewed-on: https://go-review.googlesource.com/c/exp/+/596997
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-07-07 23:36:37 +00:00
Gopher Robot fc45aab8b7 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I35ee566ef2999c3ee480684673feb38aebe5bf90
Reviewed-on: https://go-review.googlesource.com/c/exp/+/590421
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
2024-06-04 19:05:54 +00:00
Gopher Robot 9bf2ced138 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I7dbf95e7df65ce9ebec825b50099e714af3309c3
Reviewed-on: https://go-review.googlesource.com/c/exp/+/583597
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-06 18:54:15 +00:00
Gopher Robot c0f41cb1a7 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: Id32edc4bbe7845aee05cdd950023074508759c1d
Reviewed-on: https://go-review.googlesource.com/c/exp/+/576716
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2024-04-04 23:13:35 +00:00
Gopher Robot a85f2c67cd go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I3ea1a63415c8e5a0c05a779694a8a9211eef2231
Reviewed-on: https://go-review.googlesource.com/c/exp/+/569018
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Gopher Robot <gobot@golang.org>
2024-03-18 14:39:56 +00:00
Gopher Robot ec583247a5 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I3a282f917c59b07ca15a5f6d4418c9a984e3248b
Reviewed-on: https://go-review.googlesource.com/c/exp/+/563336
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
2024-02-13 14:32:01 +00:00
Gopher Robot db7319d0e0 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I09f0626656dc7ddc28822a3154f40155205bd5b9
Reviewed-on: https://go-review.googlesource.com/c/exp/+/555516
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
2024-01-12 13:28:12 +00:00
Gopher Robot 6522937349 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: Id77a853bf05e632c4517f2e85320d107e9f3a3c2
Reviewed-on: https://go-review.googlesource.com/c/exp/+/545179
Reviewed-by: Heschi Kreinick <heschi@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-11-27 18:56:46 +00:00
Gopher Robot 2478ac86f6 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I890d9297725787d8189d12b453a58237d66d14e1
Reviewed-on: https://go-review.googlesource.com/c/exp/+/540524
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-11-08 23:28:55 +00:00
Gopher Robot 7918f67274 go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I4dc2aaec361299405519bc8767da104f1d6d9b90
Reviewed-on: https://go-review.googlesource.com/c/exp/+/533376
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Gopher Robot <gobot@golang.org>
2023-10-06 14:00:11 +00:00
Gopher Robot 921286631f go.mod: update golang.org/x dependencies
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: Ic34940f1ca8e6433017007eba3010c9963fb9cea
Reviewed-on: https://go-review.googlesource.com/c/exp/+/525795
Auto-Submit: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2023-09-05 20:02:55 +00:00
Cuong Manh Le d852ddb80c all: go get golang.org/x/tools@74c255b
go get golang.org/x/tools@74c255b # CL 519295
go mod tidy

Pulling in the fix for unnecessary dependency on *types.StdSizes, which
is non guaranteed behavior.

Updates golang/go#62103

Change-Id: Ib9a4095d7fcacac5d377f0364aafc8709bb31033
Reviewed-on: https://go-review.googlesource.com/c/exp/+/520575
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2023-08-17 17:37:08 +00:00
Heschi Kreinick 97b1e661b5 cmd/gorelease: fix for LUCI
Upgrade x/mod, which fixes some Windows-related bugs.

Change-Id: I0c98df862073271f2022e92e3a08dd2900c4bca6
Reviewed-on: https://go-review.googlesource.com/c/exp/+/506299
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Heschi Kreinick <heschi@google.com>
2023-06-26 21:25:59 +00:00
Jonathan Amsterdam 22ee2bf4c0 go.mod: change language version to 1.20
Allow use of 1.20 and later features in exp.

Change-Id: I85792cdc98d789028ed4fa222aac1c6b922e8b0d
Reviewed-on: https://go-review.googlesource.com/c/exp/+/486800
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-04-20 15:53:56 +00:00
Jonathan Amsterdam 7603692ada go.mod: upgrade golang.org/x/tools to v0.2.0
This fixes the failure in apidiff, so remove the test skip.

We also need to explicitly add a "go" line in the synthesized
go.mod for the test module.

Fixes golang/go#56162.

Change-Id: Iae320af89eeca11f69bea1b0dfa86f342911973f
Reviewed-on: https://go-review.googlesource.com/c/exp/+/445576
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-10-26 15:38:12 +00:00
Than McIntosh 807a232771 go.mod: upgrade golang.org/x/tools
The old version of tools broke apidiff on 1.20/tip, due to
the unified IR rollout.

Change-Id: If7294fe3b03797ca1c04ee6673eea7f9845ab753
Reviewed-on: https://go-review.googlesource.com/c/exp/+/425156
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-08-23 12:40:25 +00:00
Jonathan Amsterdam b0d781184e apidiff: handle generic types
Two changes were required to handle generic types.

First, the code that tries to establish a correspondence between two
types could see one types.Type value that came from the type
declaration, looking like this:

    type Foo[T any]

and another types.Type value that came from a method argument or
return value, looking like this, with no constraint:

    func (Foo[T]) ...

We were using types.Identical in this case, but that function
(rightly, according to its narrow definition) returns false
when given `Foo[T any]` and `Foo[T]`.

So I defined typesEquivalent, which is like types.Identical
but succeeds in the above case.

The second change was also to the establishCorrespondence method.
Previously, any two named types could correspond. With generics, that
isn't true if the types have different type parameters.  Here we will
always have the full types, so we check that there are the same number
of type params and they have identical constraints. The type param
names don't matter.

Also, use cmp.Diff for TestChanges to make it easier to fix broken
tests.

Also, update the config for go/packages in the apidiff
command. Apparently there were breaking changes to that package that
made `apidiff -w` fail.

Also, fix a gorelease test because the output of apidiff has changed
for incompatible generic types.

Change-Id: I0a75eb43f3ce4b55748f86a2c33a1cea6d52b35d
Reviewed-on: https://go-review.googlesource.com/c/exp/+/411076
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jean de Klerk <deklerk@google.com>
2022-06-13 13:26:00 +00:00
Jonathan Amsterdam 0b5c67f07f go.mod: upgrade golang.org/x/tools
The old version of tools broke apidiff on 1.18.

Change-Id: Ifd0dfa2be4854813c5f2874d7633e0dd95e4cf95
Reviewed-on: https://go-review.googlesource.com/c/exp/+/406994
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Noah Dietz <ndietz@google.com>
Reviewed-by: Cody Oss <codyoss@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cody Oss <codyoss@google.com>
2022-05-18 17:16:30 +00:00
Ian Lance Taylor 3a4dbed63f go.mod: run go mod tidy
Clean up dependencies after moving shiny, event, and jsonrpc2 to
separate modules.

For golang/go#37175

Change-Id: Ie72d0eb4b99a625f41615d6ce3bb5c8935eb11c4
Reviewed-on: https://go-review.googlesource.com/c/exp/+/386795
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2022-02-18 21:56:59 +00:00
Jonathan Amsterdam a36d682192 event/otel: metrics
Add an event handler for OpenTelemetry metrics.

The first time it sees an event.Metric, the handler creates a matching
otel instrument and caches it. On each call, it uses the instrument to
record the metric value.

Change-Id: I07d6f40601c7d2a801ed9fbe3cf7c24d5698f3f1
Reviewed-on: https://go-review.googlesource.com/c/exp/+/320350
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2022-02-02 21:41:57 +00:00
Jonathan Amsterdam 9d54fb3536 event: upgrade to latest Open Telemetry modules
Change-Id: Iff728cc06bd5a22e12680079b20d83526c0ec98b
Reviewed-on: https://go-review.googlesource.com/c/exp/+/375959
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2022-01-14 16:20:06 +00:00
Jonathan Amsterdam 3352c48c51 event: upgrade to latest logr version
Change-Id: Iac36098a6b81809129eebfdc8485b259cb89ce6d
Reviewed-on: https://go-review.googlesource.com/c/exp/+/375958
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2022-01-14 16:19:59 +00:00
Ian Lance Taylor 03df57b9a5 slices: new package
Update the go version in go.mod to go1.18 so that generics are permitted.

For golang/go#45955

Change-Id: Id5ab52d38c465313c27506008aece9356d34e3c9
Reviewed-on: https://go-review.googlesource.com/c/exp/+/363434
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2021-11-17 21:41:01 +00:00
Bryan C. Mills 98a2daa683 all: upgrade x/tools and x/mod to HEAD
Fixes golang/go#49211.

Change-Id: I89dd34ae427637dc274667be2ccc4877d6c57367
Reviewed-on: https://go-review.googlesource.com/c/exp/+/359694
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-10-29 15:33:26 +00:00
Jean de Klerk b4e88ed8e8 cmd/gorelease: use CreateFromVCS instead of CreateFromDir
This will ignore gitignored files during the zip file creation, which means
gitignored files won't be included in the analysis.

Fixes golang/go#37413

Change-Id: Id5df46408a48e0be53157d95333ef3c2e02765bc
Reviewed-on: https://go-review.googlesource.com/c/exp/+/341930
Trust: Jean de Klerk <deklerk@google.com>
Run-TryBot: Jean de Klerk <deklerk@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
2021-08-31 22:17:22 +00:00
Jonathan Amsterdam e39418b793 event/otel: adapter for OpenTelemetry tracing
The parent ID of the event is unused; the context is used to convey
information instead.

Change-Id: I03da0a6636182b3532d6f8139cfa2ee51106c3b0
Reviewed-on: https://go-review.googlesource.com/c/exp/+/320090
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2021-06-02 13:46:39 +00:00
Jonathan Amsterdam 3999bb4320 event/logging: event adapters for logging
This CL has event adapters for the four most popular logging packages.

Each adapter constructs an event and exports it.

Sometimes an adapter must be configured with the exporter it will
write to (via a context), because the logging API doesn't support
contexts.

Change-Id: Ie570ef6db5d589bb4d4a01406d3accde8f6141b9
Reviewed-on: https://go-review.googlesource.com/c/exp/+/315549
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2021-06-02 13:45:03 +00:00
Bryan C. Mills 60409abac1 go.mod: upgrade to go 1.17
This change was produced using 'go mod tidy -go=1.17'
with a go command built at CL 315210.

This activates lazy loading, and updates the go.mod file to maintain
the lazy-loading invariants (namely, including an explicit requirement
for every package transitively imported by the main module).

Note that this does *not* prevent users with earlier go versions from
successfully building packages from this module.

For golang/go#36460

Change-Id: I64ddb83af34fa634b1631743429c0f975dead83a
Reviewed-on: https://go-review.googlesource.com/c/exp/+/315451
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-05-03 00:46:23 +00:00
Bryan C. Mills b698a44fee go.mod: update go version to 1.16
This enables the narrower "all" pattern described in
https://tip.golang.org/doc/go1.16#all-pattern,
eliminating some otherwise-unnecessary checksums.

For golang/go#36460

Change-Id: I6baee4c9d9f6dedca116ca9da14dd468e0d04b5d
Reviewed-on: https://go-review.googlesource.com/c/exp/+/315450
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-04-30 13:25:03 +00:00
Ian Cottrell ea4f22896f event: a new version of the observability system used in gopls
Change-Id: I6be505fcd597266ef817ffa5a2894b0bd21645e0
Reviewed-on: https://go-review.googlesource.com/c/exp/+/311109
Trust: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-04-23 16:53:02 +00:00
Jean de Klerk 0739314eea cmd/gorelease: don't suggest a version that already exists
Fixes golang/go#37562

Change-Id: Ie02cfaa9efc8c8375481540e551ae38f19c3a2e8
Reviewed-on: https://go-review.googlesource.com/c/exp/+/288032
Trust: Jean de Klerk <deklerk@google.com>
Run-TryBot: Jean de Klerk <deklerk@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
2021-04-17 01:06:53 +00:00
Dmitri Shuralyov b63382b4d8 shiny/driver/gldriver: add darwin/arm64 (macOS) support
Remove build constraints for Intel architectures on macOS,
they're not needed. This fixes the build on M1 Macs.

Update to a newer version of the gl package with support
for darwin/arm64 that was added in CL 278779.

Fixes golang/go#43237.

Change-Id: I813d6ec9656463caafcd2daa08986c1bee62433f
Reviewed-on: https://go-review.googlesource.com/c/exp/+/278761
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Nigel Tao <nigeltao@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2020-12-21 02:49:48 +00:00
Dmitri Shuralyov 660891f45e shiny/driver/mtldriver: add darwin/arm64 (macOS) support
The Objective-C BOOL type is defined as a signed char on on Intel-based
Mac computers, but on Apple silicon, it is defined as as a native bool.¹

This makes it hard to write portable Cgo code across darwin/amd64 and
darwin/arm64 ports. So, stop relying on it, and use the bool type from
<stdbool.h> instead.

Update to a newer version of the mtl package with a similar change.

¹ https://developer.apple.com/documentation/apple_silicon/addressing_architectural_differences_in_your_macos_code#3616879

Fixes golang/go#43221.

Change-Id: I63334dc646a8f9b74cd6a969eadf133cdbc84fb7
Reviewed-on: https://go-review.googlesource.com/c/exp/+/279293
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Nigel Tao <nigeltao@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2020-12-21 02:44:58 +00:00
Jean de Klerk ae8ad444f9 x/exp/cmd/gorelease: report all go.mod zip errors
Fixes golang/go#39091

Change-Id: I62ab72697c489be9f98f2a636782358c17d037ab
Reviewed-on: https://go-review.googlesource.com/c/exp/+/252878
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
2020-09-08 18:37:39 +00:00
Jay Conrod 40f9624edc cmd/gorelease: accept version queries for -base
This allows -base to be something like "latest" or "master".

Fixes golang/go#37410
Fixes golang/go#37412

Change-Id: I1bdf26e6524518079298a977c7de702db11ed286
Reviewed-on: https://go-review.googlesource.com/c/exp/+/236598
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
2020-08-21 19:07:54 +00:00
Jay Conrod fcea875c7e cmd/gorelease: infer base version if unspecified
If the -base flag is not set on the command line, it is now inferred
from the -version flag and available versions. If the -version flag is
given, the base version will be the highest available release version
lower than -version. Otherwise, the base version will be the highest
release version. Pre-release versions are not considered.

If there are no appropriate versions, and the release version is
unspecified or appears to be the first release (e.g., v0.1.0, v2.0.0),
the inferred base version will be "none" (meaning no comparison will
be made). Otherwise, an error will be shown.

Updates golang/go#26420

Change-Id: Iee45a4183f3e4a219c02a69b5d16a3cc5478644c
Reviewed-on: https://go-review.googlesource.com/c/exp/+/216078
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2020-02-28 21:13:41 +00:00
Dmitri Shuralyov 6cc2880d07 shiny/driver/mtldriver: update to GLFW 3.3.2
Update to a newer v3.3/glfw pseudo-version, which uses GLFW 3.3.2.

GLFW 3.3.2 includes a fix for glfw/glfw#1543 (go-gl/glfw#262),
which makes it possible to remove the workaround for it from mtldriver.

However, there is a new regression glfw/glfw#1649 (go-gl/glfw#272).
Fortunately, it's a smaller issue. Add a temporary workaround for it.

Also update comment in two internal packages. The upstream names were
modified in 11308bd612
to match the names used here.

Change-Id: I3199f16890efd539d62d8914b92260f8a614449a
Reviewed-on: https://go-review.googlesource.com/c/exp/+/220639
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Hajime Hoshi <hajimehoshi@gmail.com>
2020-02-24 16:26:31 +00:00
Jay Conrod 85f925bdd4 cmd/gorelease: detect problems before releasing new module versions
gorelease is an experimental tool that helps module authors avoid
common problems before releasing a new version of a module.

gorelease is intended to eventually be merged into the go command as
"go release".

Updates golang/go#26420

Change-Id: I23fbab171b2cb9f4598fa525ecef5dcf006dc7c4
Reviewed-on: https://go-review.googlesource.com/c/exp/+/197299
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2020-02-13 20:38:34 +00:00
Bryan C. Mills f17229e696 cmd/txtar: add a minimal command for creating txtar archives
I've been working on a design doc for a lazy module loading algorithm,
and I want to be able to present examples as txtar archives (because
that's what the eventual integration tests will be anyway).

But I also want to be able to run the 'go' command interactively in
those archives (to figure out what the behavior today is and how it
would change), and if I decide that I need to change the example it
becomes tedious to edit it locally and then repackage it.

This change adds a minimal binary for constructing and unpacking
archives. The comment section (which is usually relevant to the test)
and the archive itself are passed on stdin and stdout, and files are
read or written relative to the working directory of the command. A
list of files and/or directories can be passed explicitly at creation
time (to bypass extraneous files such as Git metadata).

Since the cmd/go tests in many cases use paths relative to the $WORK
or $GOPATH variables, this binary expands shell variables during both
creation and extraction.

A similar set of utility programs can be found in
github.com/rogpeppe/go-internal/cmd. While those programs are useful,
they are somewhat more flag-intensive, do not support shell-escaped
paths or explicit file lists, and do not extract or accept comment
text on stdio and stdout.

Change-Id: Ibfd2f7b308151b5588bba14c9d66c59453fbdbe0
Reviewed-on: https://go-review.googlesource.com/c/exp/+/218498
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
2020-02-07 19:21:55 +00:00
Dmitri Shuralyov 9964a5a804 shiny/driver/mtldriver: update to GLFW v3.3
GLFW v3.2 was old and started generating some warnings on macOS 10.15
Catalina (and warnings get upgraded to errors on builders). Update to
GLFW v3.3 that was recently released to resolve the problem.

There is a small regression affecting the newer version of GLFW that is
being tracked in issues https://github.com/glfw/glfw/issues/1543 and
https://github.com/go-gl/glfw/issues/262. It causes the application to
crash when glfwWaitEvents is called before the first window is opened:

	$ go run -tags='example metal' .../shiny/example/basic
	2019-11-25 22:19:24.715 basic[9412:69556] *** Assertion failure in -[NSApplication run], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1894.10.126/AppKit.subproj/NSApplication.m:3313
	2019-11-25 22:19:24.715 basic[9412:69556] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSApp with wrong _running count'
	*** First throw call stack:
	(
		0   CoreFoundation                      0x00007fff30503f53 __exceptionPreprocess + 250
		1   libobjc.A.dylib                     0x00007fff665c9835 objc_exception_throw + 48
		2   CoreFoundation                      0x00007fff3051f810 +[NSException raise:format:arguments:] + 88
		3   Foundation                          0x00007fff32bff5d1 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
		4   AppKit                              0x00007fff2d657ed3 -[NSApplication run] + 1007
		5   basic                               0x00000000040d473d _glfwPlatformCreateWindow + 77
		6   basic                               0x00000000040cd945 glfwCreateWindow + 485
		7   basic                               0x00000000040da71b _cgo_78603e0816ec_Cfunc_glfwCreateWindow + 43
		8   basic                               0x0000000004058430 runtime.asmcgocall + 112
	)
	libc++abi.dylib: terminating with uncaught exception of type NSException
	SIGABRT: abort
	PC=0x7fff67a7b49a m=0 sigcode=0
	signal arrived during cgo execution
	[...]

Work around it by waiting for the first window open request before
entering the main loop. That way, glfwWaitEvents is not called
before a window has been created, and the crash does not occur.
This temporary workaround can be removed after the bug is fixed.

Fixes golang/go#35766
Updates go-gl/glfw#256
Updates glfw/glfw#1543
Updates go-gl/glfw#262

Change-Id: Ie9b15ab6632af39871d94993a3e3097ea798a7e2
Reviewed-on: https://go-review.googlesource.com/c/exp/+/208877
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-11-27 03:53:08 +00:00
Jonathan Amsterdam 69215a2ee9 cmd/apidiff: store package path with export data
BREAKING CHANGE: If you have old files saved with -w, they will
no longer work.

When writing export data for a package, save the path of the package.

The export data format doesn't store this information. Previously
it didn't matter, because gcexportdata.Reader.Read would return
the package that was written. But since golang.org/cl/198742, that
is no longer true.

This was apidiff's bug, not gcexportdata's: for the path argument of
Read I was passing garbage (the filename) rather than the import path.
Read's doc doesn't specify what happens if you do that.

Also, update golang.org/x/tools to latest.

Fixes golang/go#34849.

Change-Id: I9d590270a9c2bb1fcc6c9071d4a2ca82c85d84d6
Reviewed-on: https://go-review.googlesource.com/c/exp/+/200997
Reviewed-by: Jay Conrod <jayconrod@google.com>
2019-10-14 17:15:48 +00:00
Matthew Dempsky 447a159532 go.mod: update to latest x/tools
This pulls in support for the latest cmd/compile export data format,
which is required for apidiff tests to pass when testing the latest
cmd/compile.

Change-Id: I6210f1a4a3d80c03c86c83405c68299ea10105ac
Reviewed-on: https://go-review.googlesource.com/c/exp/+/197800
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-09-27 20:38:20 +00:00
Jay Conrod 26a69ce95b x/exp/apidiff: copy changes from x/tools/internal/apidiff
We copied golang.org/x/exp/apidiff to x/tools a few months ago in
anticipation of developing gorelease in x/tools, which would depend on
apidiff.

We've decided to develop gorelease here in x/exp instead, which means
the copy in x/tools is no longer needed. This CL copies changes made
to the copy in x/tools since it was made. Another CL will delete the
copy in x/tools.

Change-Id: Ied79138616c2f3b2f49a0ee5ca95ff3179351354
Reviewed-on: https://go-review.googlesource.com/c/exp/+/197298
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2019-09-25 19:08:15 +00:00
Dmitri Shuralyov 81c71964d7 shiny/driver/mtldriver: add start of a Metal API-based driver
The OpenGL API has been deprecated on macOS as of version 10.14.¹
The replacement for OpenGL on macOS is the Metal API.² This change adds
the start of a Metal API-based shiny driver. It can be activated by
specifying the -tags=metal build tag on macOS 10.13+. For example:

	go run -tags='example metal' golang.org/x/exp/shiny/example/icongallery

The goal of this CL has been to create an MVP. As a result, the focus is
on simplicity and correctness. Performance optimizations can come later.

The Metal API is currently used only to present the final pixels to
the screen. All rendering is performed on the CPU via the image/draw
algorithms (see https://blog.golang.org/go-imagedraw-package).
Future work is to use mtl.Buffer, mtl.Texture, etc., to do more of
the rendering work on the GPU.

From what I've observed so far, the Metal API is looking to be a great
fit for implementing the screen.Screen interface. But we'll learn more
when it's used to a greater extent of its full performance potential.

GLFW v3.2.1 is used for window creation, receiving input events, etc.
Package dmitri.shuralyov.com/gpu/mtl is used for Metal API access.
Helper packages for Apple's Core Animation and AppKit APIs are copied.

References:

¹ https://developer.apple.com/documentation/macos_release_notes/macos_mojave_10_14_release_notes?language=objc#3035786
² https://developer.apple.com/metal/

Change-Id: I0e02d660b776820ca499bfe7d67e47a9866d530c
Reviewed-on: https://go-review.googlesource.com/c/exp/+/171025
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2019-09-19 03:57:09 +00:00
Bryan C. Mills 63fe5bdad1 shiny/driver/gldriver: fix build with CGO_ENABLED=0
Fixes golang/go#32837

Change-Id: I2787bba8ee35eb150dfb8cfcfb3854b43fe611a4
Reviewed-on: https://go-review.googlesource.com/c/exp/+/192319
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-08-29 15:01:08 +00:00
Jean de Klerk cfdd5522f6 modgraphviz: colour nodes based on whether they were picked by MVS or not
Green nodes are those picked by MVS, whilst gray nodes are those not picked.

Example output on the tools repo: https://user-images.githubusercontent.com/3584893/61019393-45338f80-a357-11e9-8d28-b06c41357c0f.png

This CL includes a refactor of the input into a graph: this is one part for
organization, and another part in preparation for cycle detection.

Change-Id: I2ff717642480270659640f098cdf509d479d3ca3
Reviewed-on: https://go-review.googlesource.com/c/exp/+/185657
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
2019-07-18 20:20:18 +00:00