Skip to content

Commit

Permalink
internal/robustio: move robustio
Browse files Browse the repository at this point in the history
Moves gopls/internal/robustio to internal/robustio.
Allows usage by packages in x/tools outside of gopls.

Change-Id: I71743c3a91458b77f12606b743b5de7e23cc5051
Reviewed-on: https://go-review.googlesource.com/c/tools/+/460116
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Alan Donovan <[email protected]>
Run-TryBot: Tim King <[email protected]>
gopls-CI: kokoro <[email protected]>
  • Loading branch information
timothy-king committed Jan 2, 2023
1 parent b01e7a4 commit 33071fb
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gopls/internal/lsp/fake/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"path/filepath"
"strings"

"golang.org/x/tools/gopls/internal/robustio"
"golang.org/x/tools/internal/gocommand"
"golang.org/x/tools/internal/robustio"
"golang.org/x/tools/internal/testenv"
"golang.org/x/tools/txtar"
)
Expand Down
2 changes: 1 addition & 1 deletion gopls/internal/lsp/fake/workdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"time"

"golang.org/x/tools/gopls/internal/lsp/protocol"
"golang.org/x/tools/gopls/internal/robustio"
"golang.org/x/tools/gopls/internal/span"
"golang.org/x/tools/internal/robustio"
)

// RelativeTo is a helper for operations relative to a given directory.
Expand Down
2 changes: 1 addition & 1 deletion gopls/internal/lsp/filecache/filecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"sync/atomic"
"time"

"golang.org/x/tools/gopls/internal/robustio"
"golang.org/x/tools/internal/robustio"
)

// Get retrieves from the cache and returns a newly allocated
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path/filepath"
"testing"

"golang.org/x/tools/gopls/internal/robustio"
"golang.org/x/tools/internal/robustio"
)

func TestFileID(t *testing.T) {
Expand Down
File renamed without changes.

0 comments on commit 33071fb

Please sign in to comment.