Content-Length: 299145 | pFad | http://github.com/golang/tools/commit/a2c2a72556492d3a7c1430afe2bb4fa87d586cb5

55 internal/tokeninternal: avoid use of AddExistingFiles, for now · golang/tools@a2c2a72 · GitHub
Skip to content

Commit a2c2a72

Browse files
findleyrgopherbot
authored andcommitted
internal/tokeninternal: avoid use of AddExistingFiles, for now
Recently, token.FileSet.AddExistingFiles was added to the standard library. However, our immediate use of it in x/tools is causing problems due to version skew when we import into Google, where the toolchain may be a week or two old. Temporarily avoid the use of this new API. Change-Id: I2cc6d89b32505d07c3b7275b4279f952e0ecf28c Reviewed-on: https://go-review.googlesource.com/c/tools/+/674435 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Robert Findley <rfindley@google.com>
1 parent b62c6c1 commit a2c2a72

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

internal/tokeninternal/tokeninternal_go124.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build !go1.25
5+
// TODO(rfindley): once the new AddExistingFiles API has had some time to soak
6+
// in std, use it in x/tools and change the condition below to !go1.25.
7+
8+
//go:build !addexistingfiles
69

710
package tokeninternal
811

internal/tokeninternal/tokeninternal_go125.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build go1.25
5+
// TODO(rfindley): once the new AddExistingFiles API has had some time to soak
6+
// in std, use it here behind the go1.25 build tag.
7+
8+
//go:build addexistingfiles
69

710
package tokeninternal
811

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/golang/tools/commit/a2c2a72556492d3a7c1430afe2bb4fa87d586cb5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy