Skip to content

Commit

Permalink
blind replace kbfs to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jzila committed Dec 14, 2018
1 parent c726953 commit b43d0cd
Show file tree
Hide file tree
Showing 385 changed files with 954 additions and 954 deletions.
10 changes: 5 additions & 5 deletions go/bind/keybase.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import (
"github.com/keybase/client/go/service"
"github.com/keybase/client/go/uidmap"
"github.com/keybase/go-framed-msgpack-rpc/rpc"
"github.com/keybase/kbfs/env"
"github.com/keybase/kbfs/fsrpc"
"github.com/keybase/kbfs/libgit"
"github.com/keybase/kbfs/libkbfs"
"github.com/keybase/kbfs/simplefs"
"github.com/keybase/client/go/kbfs/env"
"github.com/keybase/client/go/kbfs/fsrpc"
"github.com/keybase/client/go/kbfs/libgit"
"github.com/keybase/client/go/kbfs/libkbfs"
"github.com/keybase/client/go/kbfs/simplefs"
context "golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
version: 2
jobs:
build:
working_directory: ~/go-path/src/github.com/keybase/kbfs
working_directory: ~/go-path/src/github.com/keybase/client/go/kbfs

docker:
- image: keybaseprivate/circleci-kbfs@sha256:6e95999341a551ca9d175f497abc6f99e42583d977e26489471a86895327cd28
Expand Down
12 changes: 6 additions & 6 deletions go/kbfs/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ helpers.rootLinuxNode(env, {
env.GOPATH="${env.BASEDIR}/go"
env.GO15VENDOREXPERIMENT=1

ws("${env.GOPATH}/src/github.com/keybase/kbfs") {
ws("${env.GOPATH}/src/github.com/keybase/client/go/kbfs") {
def mysqlImage = docker.image("keybaseprivate/mysql")
def gregorImage = docker.image("keybaseprivate/kbgregor")
def kbwebImage = docker.image("keybaseprivate/kbweb")
Expand Down Expand Up @@ -140,7 +140,7 @@ helpers.rootLinuxNode(env, {
"TMPDIR=${mountDir}",
"GOTRACEBACK=all",
]) {
ws("${GOPATH}/src/github.com/keybase/kbfs") {
ws("${GOPATH}/src/github.com/keybase/client/go/kbfs") {
println "Checkout OS X"
checkout scm

Expand All @@ -152,9 +152,9 @@ helpers.rootLinuxNode(env, {
},
test_kbfs: {
// Install kbfsfuse first so we can start on dockerizing.
sh "go install github.com/keybase/kbfs/kbfsfuse"
sh "go install github.com/keybase/client/go/kbfs/kbfsfuse"
sh "cp ${env.GOPATH}/bin/kbfsfuse ./kbfsfuse/kbfsfuse"
sh "go install github.com/keybase/kbfs/kbfsgit/git-remote-keybase"
sh "go install github.com/keybase/client/go/kbfs/kbfsgit/git-remote-keybase"
sh "cp ${env.GOPATH}/bin/git-remote-keybase ./kbfsgit/git-remote-keybase/git-remote-keybase"
withCredentials([[$class: 'StringBinding', credentialsId: 'kbfs-docker-cert-b64-new', variable: 'KBFS_DOCKER_CERT_B64']]) {
println "Building Docker"
Expand Down Expand Up @@ -256,7 +256,7 @@ def runNixTest(prefix) {
}
tests[prefix+'notestingdep'] = {
// Make sure we don't accidentally pull in the testing package.
sh '! go list -f \'{{ join .Deps "\\n" }}\' github.com/keybase/kbfs/kbfsfuse | grep testing'
sh '! go list -f \'{{ join .Deps "\\n" }}\' github.com/keybase/client/go/kbfs/kbfsfuse | grep testing'
}
tests[prefix+'vet'] = {
sh 'make -s lint'
Expand Down Expand Up @@ -284,7 +284,7 @@ def runNixTest(prefix) {
// races.
sh 'go test -i -tags fuse ./...'

sh 'go install github.com/keybase/kbfs/...'
sh 'go install github.com/keybase/client/go/kbfs/...'

// Keep the list below in sync with the result of
//
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ precommit hooks to make sure your code passes `gofmt` and `govet`:

```bash
go get golang.org/x/tools/cmd/vet
ln -s $GOPATH/src/github.com/keybase/client/git-hooks/pre-commit $GOPATH/src/github.com/keybase/kbfs/.git/hooks/pre-commit
ln -s $GOPATH/src/github.com/keybase/client/git-hooks/pre-commit $GOPATH/src/github.com/keybase/client/go/kbfs/.git/hooks/pre-commit
```

Though it doesn't happen automatically, we also expect your code to be
Expand Down
36 changes: 18 additions & 18 deletions go/kbfs/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,26 @@ build_script:
#
# for x in $(find . -mindepth 1 \( -wholename ./vendor -o -wholename ./.git \) -prune -o -type d -print); do [ -n "$(ls -A $x/*_test.go 2>/dev/null)" ] && echo $x; done | sort
# dokan dir is tested above.
- echo github.com/keybase/kbfs/kbfsblock >> testlist.txt
- echo github.com/keybase/kbfs/kbfscodec >> testlist.txt
- echo github.com/keybase/kbfs/kbfscrypto >> testlist.txt
- echo github.com/keybase/kbfs/kbfsedits >> testlist.txt
- echo github.com/keybase/kbfs/kbfsgit >> testlist.txt
- echo github.com/keybase/kbfs/kbfshash >> testlist.txt
- echo github.com/keybase/kbfs/kbfsmd >> testlist.txt
- echo github.com/keybase/kbfs/kbfssync >> testlist.txt
- echo github.com/keybase/kbfs/kbpagesconfig >> testlist.txt
- echo github.com/keybase/kbfs/libdokan >> testlist.txt
- echo github.com/keybase/kbfs/libfs >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbfsblock >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbfscodec >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbfscrypto >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbfsedits >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbfsgit >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbfshash >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbfsmd >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbfssync >> testlist.txt
- echo github.com/keybase/client/go/kbfs/kbpagesconfig >> testlist.txt
- echo github.com/keybase/client/go/kbfs/libdokan >> testlist.txt
- echo github.com/keybase/client/go/kbfs/libfs >> testlist.txt
# libfuse is non-Windows-only.
- echo github.com/keybase/kbfs/libgit >> testlist.txt
- echo github.com/keybase/kbfs/libhttpserver >> testlist.txt
- echo github.com/keybase/kbfs/libkbfs >> testlist.txt
- echo github.com/keybase/kbfs/libpages >> testlist.txt
- echo github.com/keybase/kbfs/libpages/config >> testlist.txt
- echo github.com/keybase/kbfs/simplefs >> testlist.txt
- echo github.com/keybase/client/go/kbfs/libgit >> testlist.txt
- echo github.com/keybase/client/go/kbfs/libhttpserver >> testlist.txt
- echo github.com/keybase/client/go/kbfs/libkbfs >> testlist.txt
- echo github.com/keybase/client/go/kbfs/libpages >> testlist.txt
- echo github.com/keybase/client/go/kbfs/libpages/config >> testlist.txt
- echo github.com/keybase/client/go/kbfs/simplefs >> testlist.txt
# test dir is tested below.
- echo github.com/keybase/kbfs/tlf >> testlist.txt
- echo github.com/keybase/client/go/kbfs/tlf >> testlist.txt
# TODO: Run the below tests with env KEYBASE_TEST_BSERVER_ADDR=tempdir.
- for /f %%i in (testlist.txt) do (appveyor AddTest %%i -Outcome Running -Framework gotest -Filename %%i & go test -timeout 5m %%i && appveyor UpdateTest %%i -Outcome Passed -Framework gotest -Filename %%i -Duration 0) || (appveyor UpdateTest %%i -Outcome Failed -Framework gotest -Filename %%i -Duration 0 & exit /b 1)
- cd test && go test -tags dokan -timeout 300s
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/dokan/cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"unicode/utf16"
"unsafe"

"github.com/keybase/kbfs/dokan/winacl"
"github.com/keybase/client/go/kbfs/dokan/winacl"
"golang.org/x/sys/windows"
)

Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/dokan/dokan.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package dokan

import (
"github.com/keybase/kbfs/dokan/winacl"
"github.com/keybase/client/go/kbfs/dokan/winacl"
)

// MountHandle holds a reference to a mounted filesystem.
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/dokan/dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "C"
import (
"errors"

"github.com/keybase/kbfs/dokan/winacl"
"github.com/keybase/client/go/kbfs/dokan/winacl"
)

var errNotWindows = errors.New("dokan not supported outside Windows")
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/dokan/error_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"time"

"github.com/keybase/kbfs/dokan/winacl"
"github.com/keybase/client/go/kbfs/dokan/winacl"
)

type errorFile struct {
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/dokan/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"time"

"github.com/keybase/kbfs/dokan/winacl"
"github.com/keybase/client/go/kbfs/dokan/winacl"
)

// Config is the configuration used for a mount.
Expand Down
4 changes: 2 additions & 2 deletions go/kbfs/dokan/testfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"time"
"unsafe"

"github.com/keybase/kbfs/dokan/winacl"
"github.com/keybase/kbfs/ioutil"
"github.com/keybase/client/go/kbfs/dokan/winacl"
"github.com/keybase/client/go/kbfs/ioutil"
"golang.org/x/sys/windows"
)

Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/fsrpc/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/keybase/client/go/logger"
"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/libkbfs"
"github.com/keybase/client/go/kbfs/libkbfs"
"golang.org/x/net/context"
)

Expand Down
4 changes: 2 additions & 2 deletions go/kbfs/fsrpc/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"path/filepath"
"strings"

"github.com/keybase/kbfs/libkbfs"
"github.com/keybase/kbfs/tlf"
"github.com/keybase/client/go/kbfs/libkbfs"
"github.com/keybase/client/go/kbfs/tlf"
"github.com/pkg/errors"
"golang.org/x/net/context"
)
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/kbfsblock/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"

"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/kbfscrypto"
"github.com/keybase/client/go/kbfs/kbfscrypto"
)

// RefNonce is a 64-bit unique sequence of bytes for identifying this
Expand Down
4 changes: 2 additions & 2 deletions go/kbfs/kbfsblock/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"errors"
"math"

"github.com/keybase/kbfs/kbfscrypto"
"github.com/keybase/kbfs/kbfshash"
"github.com/keybase/client/go/kbfs/kbfscrypto"
"github.com/keybase/client/go/kbfs/kbfshash"
)

// ID is the (usually content-based) ID for a data block.
Expand Down
4 changes: 2 additions & 2 deletions go/kbfs/kbfsblock/id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"math"
"testing"

"github.com/keybase/kbfs/kbfscodec"
"github.com/keybase/kbfs/kbfshash"
"github.com/keybase/client/go/kbfs/kbfscodec"
"github.com/keybase/client/go/kbfs/kbfshash"
"github.com/stretchr/testify/require"
)

Expand Down
6 changes: 3 additions & 3 deletions go/kbfs/kbfsblock/protocol_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/keybase/backoff"
"github.com/keybase/client/go/logger"
"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/kbfscodec"
"github.com/keybase/kbfs/kbfscrypto"
"github.com/keybase/kbfs/tlf"
"github.com/keybase/client/go/kbfs/kbfscodec"
"github.com/keybase/client/go/kbfs/kbfscrypto"
"github.com/keybase/client/go/kbfs/tlf"
)

func makeIDCombo(id ID, context Context) keybase1.BlockIdCombo {
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/kbfsblock/quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package kbfsblock

import "github.com/keybase/kbfs/kbfscodec"
import "github.com/keybase/client/go/kbfs/kbfscodec"

// UsageType indicates the type of usage that quota manager is keeping stats of
type UsageType int
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/kbfscodec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path/filepath"
"reflect"

"github.com/keybase/kbfs/ioutil"
"github.com/keybase/client/go/kbfs/ioutil"
)

// ExtCode is used to register codec extensions
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/kbfscrypto/crypto_key_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/keybase/client/go/libkb"
"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/kbfshash"
"github.com/keybase/client/go/kbfs/kbfshash"
"github.com/pkg/errors"
"golang.org/x/crypto/nacl/box"
)
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/kbfscrypto/crypto_key_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"

"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/kbfscodec"
"github.com/keybase/client/go/kbfs/kbfscodec"
"github.com/stretchr/testify/require"
)

Expand Down
6 changes: 3 additions & 3 deletions go/kbfs/kbfscrypto/encrypted_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"reflect"

"github.com/keybase/client/go/libkb"
"github.com/keybase/kbfs/cache"
"github.com/keybase/kbfs/kbfscodec"
"github.com/keybase/kbfs/kbfshash"
"github.com/keybase/client/go/kbfs/cache"
"github.com/keybase/client/go/kbfs/kbfscodec"
"github.com/keybase/client/go/kbfs/kbfshash"
"github.com/pkg/errors"
"golang.org/x/crypto/nacl/box"
"golang.org/x/crypto/nacl/secretbox"
Expand Down
10 changes: 5 additions & 5 deletions go/kbfs/kbfsdokan/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"os"

"github.com/keybase/client/go/libkb"
"github.com/keybase/kbfs/dokan"
"github.com/keybase/kbfs/env"
"github.com/keybase/kbfs/libdokan"
"github.com/keybase/kbfs/libfs"
"github.com/keybase/kbfs/libkbfs"
"github.com/keybase/client/go/kbfs/dokan"
"github.com/keybase/client/go/kbfs/env"
"github.com/keybase/client/go/kbfs/libdokan"
"github.com/keybase/client/go/kbfs/libfs"
"github.com/keybase/client/go/kbfs/libkbfs"
)

var runtimeDir = flag.String("runtime-dir", os.Getenv("KEYBASE_RUNTIME_DIR"), "runtime directory")
Expand Down
6 changes: 3 additions & 3 deletions go/kbfs/kbfsedits/data_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

"github.com/keybase/client/go/protocol/chat1"
"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/kbfscrypto"
"github.com/keybase/kbfs/kbfsmd"
"github.com/keybase/kbfs/tlf"
"github.com/keybase/client/go/kbfs/kbfscrypto"
"github.com/keybase/client/go/kbfs/kbfsmd"
"github.com/keybase/client/go/kbfs/tlf"
)

// NotificationVersion is the numeric version of the edit notification
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/kbfsedits/tlf_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"sync"

"github.com/keybase/kbfs/kbfsmd"
"github.com/keybase/client/go/kbfs/kbfsmd"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions go/kbfs/kbfsedits/tlf_history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"time"

"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/kbfsmd"
"github.com/keybase/kbfs/tlf"
"github.com/keybase/client/go/kbfs/kbfsmd"
"github.com/keybase/client/go/kbfs/tlf"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/kbfsedits/user_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"sync"

"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/tlf"
"github.com/keybase/client/go/kbfs/tlf"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion go/kbfs/kbfsedits/user_history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/kbfs/tlf"
"github.com/keybase/client/go/kbfs/tlf"
"github.com/stretchr/testify/require"
)

Expand Down
8 changes: 4 additions & 4 deletions go/kbfs/kbfsfuse/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"bazil.org/fuse"

"github.com/keybase/client/go/logger"
"github.com/keybase/kbfs/env"
"github.com/keybase/kbfs/libfs"
"github.com/keybase/kbfs/libfuse"
"github.com/keybase/kbfs/libkbfs"
"github.com/keybase/client/go/kbfs/env"
"github.com/keybase/client/go/kbfs/libfs"
"github.com/keybase/client/go/kbfs/libfuse"
"github.com/keybase/client/go/kbfs/libkbfs"
)

var runtimeDir = flag.String("runtime-dir", os.Getenv("KEYBASE_RUNTIME_DIR"), "runtime directory")
Expand Down
12 changes: 6 additions & 6 deletions go/kbfs/kbfsgit/git-remote-keybase/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (

"github.com/keybase/client/go/kbconst"
"github.com/keybase/client/go/libkb"
"github.com/keybase/kbfs/env"
"github.com/keybase/kbfs/kbfsgit"
"github.com/keybase/kbfs/libfs"
"github.com/keybase/kbfs/libgit"
"github.com/keybase/kbfs/libkbfs"
"github.com/keybase/kbfs/stderrutils"
"github.com/keybase/client/go/kbfs/env"
"github.com/keybase/client/go/kbfs/kbfsgit"
"github.com/keybase/client/go/kbfs/libfs"
"github.com/keybase/client/go/kbfs/libgit"
"github.com/keybase/client/go/kbfs/libkbfs"
"github.com/keybase/client/go/kbfs/stderrutils"
)

var version = flag.Bool("version", false, "Print version")
Expand Down
Loading

0 comments on commit b43d0cd

Please sign in to comment.