Browse Source

bump v4 version

Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
tags/v4.0.0
Máximo Cuadros 1 year ago
parent
commit
425453eeb6
No account linked to committer's email address

+ 2
- 3
.travis.yml View File

@@ -1,10 +1,9 @@
language: go

go:
- 1.8
- tip
- 1.9

go_import_path: gopkg.in/src-d/go-billy.v3
go_import_path: gopkg.in/src-d/go-billy.v4

matrix:
allow_failures:

+ 8
- 8
README.md View File

@@ -1,4 +1,4 @@
# go-billy [![GoDoc](https://godoc.org/gopkg.in/src-d/go-billy.v3?status.svg)](https://godoc.org/gopkg.in/src-d/go-billy.v3) [![Build Status](https://travis-ci.org/src-d/go-billy.svg)](https://travis-ci.org/src-d/go-billy) [![Build status](https://ci.appveyor.com/api/projects/status/vx2qn6vlakbi724t?svg=true)](https://ci.appveyor.com/project/mcuadros/go-billy) [![codecov](https://codecov.io/gh/src-d/go-billy/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/go-billy)
# go-billy [![GoDoc](https://godoc.org/gopkg.in/src-d/go-billy.v4?status.svg)](https://godoc.org/gopkg.in/src-d/go-billy.v4) [![Build Status](https://travis-ci.org/src-d/go-billy.svg)](https://travis-ci.org/src-d/go-billy) [![Build status](https://ci.appveyor.com/api/projects/status/vx2qn6vlakbi724t?svg=true)](https://ci.appveyor.com/project/mcuadros/go-billy) [![codecov](https://codecov.io/gh/src-d/go-billy/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/go-billy)

The missing interface filesystem abstraction for Go.
Billy implements an interface based on the `os` standard library, allowing to develop applications without dependency on the underlying storage. Make virtually free implement an mocks and testing over filesystem operations.
@@ -8,14 +8,9 @@ Billy was born as part of [src-d/go-git](https://github.com/src-d/go-git) projec
## Installation

```go
go get -u gopkg.in/src-d/go-billy.v3/...
go get -u gopkg.in/src-d/go-billy.v4/...
```

## Why billy?

The library billy deals with storage systems and Billy is the name of a well-known, IKEA
bookcase. That's it.

## Usage

Billy exposes filesystems using the
@@ -67,6 +62,11 @@ func LoadToMemory(origin billy.Filesystem, path string) (*memory.Memory, error)
}
```

## Why billy?

The library billy deals with storage systems and Billy is the name of a well-known, IKEA
bookcase. That's it.

## License

MIT, see [LICENSE](LICENSE)
Apache License Version 2.0, see [LICENSE](LICENSE)

+ 2
- 2
appveyor.yml View File

@@ -1,7 +1,7 @@
version: "{build}"
platform: x64

clone_folder: c:\gopath\src\gopkg.in\src-d\go-billy.v3
clone_folder: c:\gopath\src\gopkg.in\src-d\go-billy.v4

environment:
GOPATH: c:\gopath
@@ -12,4 +12,4 @@ install:
- go get -v -t ./...

build_script:
- go test -v ./...
- go test -v ./...

+ 2
- 2
helper/chroot/chroot.go View File

@@ -5,8 +5,8 @@ import (
"path/filepath"
"strings"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/helper/polyfill"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/helper/polyfill"
)

// ChrootHelper is a helper to implement billy.Chroot.

+ 2
- 2
helper/chroot/chroot_test.go View File

@@ -5,8 +5,8 @@ import (
"path/filepath"
"testing"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/test"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/test"

. "gopkg.in/check.v1"
)

+ 2
- 2
helper/mount/mount.go View File

@@ -8,8 +8,8 @@ import (

"fmt"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/helper/polyfill"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/helper/polyfill"
)

var separator = string(filepath.Separator)

+ 4
- 4
helper/mount/mount_test.go View File

@@ -5,10 +5,10 @@ import (
"path/filepath"
"testing"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/memfs"
"gopkg.in/src-d/go-billy.v3/test"
"gopkg.in/src-d/go-billy.v3/util"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/memfs"
"gopkg.in/src-d/go-billy.v4/test"
"gopkg.in/src-d/go-billy.v4/util"

. "gopkg.in/check.v1"
)

+ 1
- 1
helper/polyfill/polyfill.go View File

@@ -4,7 +4,7 @@ import (
"os"
"path/filepath"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v4"
)

// Polyfill is a helper that implements all missing method from billy.Filesystem.

+ 2
- 2
helper/polyfill/polyfill_test.go View File

@@ -4,8 +4,8 @@ import (
"path/filepath"
"testing"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/test"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/test"

. "gopkg.in/check.v1"
)

+ 2
- 2
helper/temporal/temporal.go View File

@@ -1,8 +1,8 @@
package temporal

import (
"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/util"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/util"
)

// Temporal is a helper that implements billy.TempFile over any filesystem.

+ 2
- 2
helper/temporal/temporal_test.go View File

@@ -4,8 +4,8 @@ import (
"strings"
"testing"

"gopkg.in/src-d/go-billy.v3/memfs"
"gopkg.in/src-d/go-billy.v3/test"
"gopkg.in/src-d/go-billy.v4/memfs"
"gopkg.in/src-d/go-billy.v4/test"

. "gopkg.in/check.v1"
)

+ 4
- 4
memfs/memory.go View File

@@ -1,5 +1,5 @@
// Package memfs provides a billy filesystem base on memory.
package memfs // import "gopkg.in/src-d/go-billy.v3/memfs"
package memfs // import "gopkg.in/src-d/go-billy.v4/memfs"

import (
"errors"
@@ -10,9 +10,9 @@ import (
"strings"
"time"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/helper/chroot"
"gopkg.in/src-d/go-billy.v3/util"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/helper/chroot"
"gopkg.in/src-d/go-billy.v4/util"
)

const separator = filepath.Separator

+ 1
- 1
memfs/memory_test.go View File

@@ -3,7 +3,7 @@ package memfs
import (
"testing"

"gopkg.in/src-d/go-billy.v3/test"
"gopkg.in/src-d/go-billy.v4/test"

. "gopkg.in/check.v1"
)

+ 3
- 3
osfs/os.go View File

@@ -1,5 +1,5 @@
// Package osfs provides a billy filesystem for the OS.
package osfs // import "gopkg.in/src-d/go-billy.v3/osfs"
package osfs // import "gopkg.in/src-d/go-billy.v4/osfs"

import (
"io/ioutil"
@@ -7,8 +7,8 @@ import (
"path/filepath"
"sync"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/helper/chroot"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/helper/chroot"
)

const (

+ 1
- 1
osfs/os_test.go View File

@@ -7,7 +7,7 @@ import (
"testing"

. "gopkg.in/check.v1"
"gopkg.in/src-d/go-billy.v3/test"
"gopkg.in/src-d/go-billy.v4/test"
)

func Test(t *testing.T) { TestingT(t) }

+ 2
- 2
test/basic.go View File

@@ -9,8 +9,8 @@ import (
"path/filepath"

. "gopkg.in/check.v1"
. "gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/util"
. "gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/util"
)

// BasicSuite is a convenient test suite to validate any implementation of

+ 2
- 2
test/chroot.go View File

@@ -4,8 +4,8 @@ import (
"os"

. "gopkg.in/check.v1"
. "gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/util"
. "gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/util"
)

// ChrootSuite is a convenient test suite to validate any implementation of

+ 2
- 2
test/dir.go View File

@@ -5,8 +5,8 @@ import (
"strconv"

. "gopkg.in/check.v1"
. "gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/util"
. "gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/util"
)

// DirSuite is a convenient test suite to validate any implementation of

+ 2
- 2
test/fs.go View File

@@ -4,8 +4,8 @@ import (
"os"

. "gopkg.in/check.v1"
. "gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/util"
. "gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/util"
)

// FilesystemSuite is a convenient test suite to validate any implementation of

+ 1
- 1
test/mock.go View File

@@ -6,7 +6,7 @@ import (
"path"
"path/filepath"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v4"
)

type BasicMock struct {

+ 2
- 2
test/symlink.go View File

@@ -5,8 +5,8 @@ import (
"os"

. "gopkg.in/check.v1"
. "gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/util"
. "gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/util"
)

// SymlinkSuite is a convenient test suite to validate any implementation of

+ 2
- 2
test/tempfile.go View File

@@ -4,8 +4,8 @@ import (
"strings"

. "gopkg.in/check.v1"
"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v3/util"
"gopkg.in/src-d/go-billy.v4"
"gopkg.in/src-d/go-billy.v4/util"
)

// TempFileSuite is a convenient test suite to validate any implementation of

+ 1
- 1
util/util.go View File

@@ -8,7 +8,7 @@ import (
"sync"
"time"

"gopkg.in/src-d/go-billy.v3"
"gopkg.in/src-d/go-billy.v4"
)

// RemoveAll removes path and any children it contains. It removes everything it

Loading…
Cancel
Save