Skip to content

Commit

Permalink
flac: Drop use of gopkg.in in import paths. Rely on vendoring instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew committed Mar 6, 2016
1 parent dd4d1cd commit 9970b89
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 34 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,11 @@ before_install:
- go get github.com/mattn/goveralls

install:
- go get gopkg.in/mewkiz/flac.v1
- cd $HOME/gopath/src/gopkg.in/mewkiz/flac.v1
- git pull https://github.com/mewkiz/flac.git
- go get gopkg.in/mewkiz/flac.v1/...
- go get ./...

before_script:
- cd $HOME/gopath/src/gopkg.in/mewkiz/flac.v1
- wget https://gist.github.com/mewmew/379014c9a2e6885e238d/raw/goclean.sh
- chmod +x goclean.sh

script:
- cd $HOME/gopath/src/gopkg.in/mewkiz/flac.v1
- ./goclean.sh
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/mewkiz/flac.svg?branch=master)](https://travis-ci.org/mewkiz/flac)
[![Coverage Status](https://img.shields.io/coveralls/mewkiz/flac.svg)](https://coveralls.io/r/mewkiz/flac?branch=master)
[![GoDoc](https://godoc.org/gopkg.in/mewkiz/flac.v1?status.svg)](https://godoc.org/gopkg.in/mewkiz/flac.v1)
[![GoDoc](https://godoc.org/github.com/mewkiz/flac?status.svg)](https://godoc.org/github.com/mewkiz/flac)

This package provides access to [FLAC][1] (Free Lossless Audio Codec) streams.

Expand All @@ -16,9 +16,9 @@ Documentation provided by GoDoc.
- [frame][flac/frame]: implements access to FLAC audio frames.
- [meta][flac/meta]: implements access to FLAC metadata blocks.

[flac]: http://godoc.org/gopkg.in/mewkiz/flac.v1
[flac/frame]: http://godoc.org/gopkg.in/mewkiz/flac.v1/frame
[flac/meta]: http://godoc.org/gopkg.in/mewkiz/flac.v1/meta
[flac]: http://godoc.org/github.com/mewkiz/flac
[flac/frame]: http://godoc.org/github.com/mewkiz/flac/frame
[flac/meta]: http://godoc.org/github.com/mewkiz/flac/meta

## Changes

Expand Down
4 changes: 2 additions & 2 deletions cmd/go-metaflac/metaflac.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"strconv"
"strings"

"gopkg.in/mewkiz/flac.v1"
"gopkg.in/mewkiz/flac.v1/meta"
"github.com/mewkiz/flac"
"github.com/mewkiz/flac/meta"
)

// flagBlockNum contains an optional comma-separated list of block numbers to
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"log"

"gopkg.in/mewkiz/flac.v1"
"github.com/mewkiz/flac"
)

func ExampleParseFile() {
Expand Down
8 changes: 4 additions & 4 deletions flac.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
// for a brief introduction of their respective formats.
//
// [1]: https://www.xiph.org/flac/format.html#stream
// [2]: https://godoc.org/gopkg.in/mewkiz/flac.v1/meta
// [3]: https://godoc.org/gopkg.in/mewkiz/flac.v1/frame
// [2]: https://godoc.org/github.com/mewkiz/flac/meta
// [3]: https://godoc.org/github.com/mewkiz/flac/frame
package flac

import (
Expand All @@ -28,8 +28,8 @@ import (
"io"
"os"

"gopkg.in/mewkiz/flac.v1/frame"
"gopkg.in/mewkiz/flac.v1/meta"
"github.com/mewkiz/flac/frame"
"github.com/mewkiz/flac/meta"
)

// A Stream contains the metadata blocks and provides access to the audio frames
Expand Down
10 changes: 5 additions & 5 deletions frame/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// [2]: https://www.xiph.org/flac/format.html#blocking
// [3]: https://www.xiph.org/flac/format.html#interchannel
// [4]: https://www.xiph.org/flac/format.html#prediction
// [5]: https://godoc.org/gopkg.in/mewkiz/flac.v1/frame#Pred
// [5]: https://godoc.org/github.com/mewkiz/flac/frame#Pred
package frame

import (
Expand All @@ -33,10 +33,10 @@ import (
"io"
"log"

"gopkg.in/mewpkg/bits.v1"
"gopkg.in/mewpkg/hashutil.v1"
"gopkg.in/mewpkg/hashutil.v1/crc16"
"gopkg.in/mewpkg/hashutil.v1/crc8"
"github.com/mewpkg/bits"
"github.com/mewpkg/hashutil"
"github.com/mewpkg/hashutil/crc16"
"github.com/mewpkg/hashutil/crc8"
)

// A Frame contains the header and subframes of an audio frame. It holds the
Expand Down
2 changes: 1 addition & 1 deletion frame/frame_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"testing"

"gopkg.in/mewkiz/flac.v1"
"github.com/mewkiz/flac"
)

var golden = []struct {
Expand Down
2 changes: 1 addition & 1 deletion frame/subframe.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"gopkg.in/mewpkg/bits.v1"
"github.com/mewpkg/bits"
)

// A Subframe contains the encoded audio samples from one channel of an audio
Expand Down
14 changes: 7 additions & 7 deletions meta/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
// Please refer to their respective documentation for further information.
//
// [1]: https://www.xiph.org/flac/format.html#format_overview
// [2]: https://godoc.org/gopkg.in/mewkiz/flac.v1/meta#StreamInfo
// [2]: https://godoc.org/github.com/mewkiz/flac/meta#StreamInfo
// [3]: https://www.xiph.org/flac/format.html#metadata_block_padding
// [4]: https://godoc.org/gopkg.in/mewkiz/flac.v1/meta#Application
// [5]: https://godoc.org/gopkg.in/mewkiz/flac.v1/meta#SeekTable
// [6]: https://godoc.org/gopkg.in/mewkiz/flac.v1/meta#VorbisComment
// [7]: https://godoc.org/gopkg.in/mewkiz/flac.v1/meta#CueSheet
// [8]: https://godoc.org/gopkg.in/mewkiz/flac.v1/meta#Picture
// [4]: https://godoc.org/github.com/mewkiz/flac/meta#Application
// [5]: https://godoc.org/github.com/mewkiz/flac/meta#SeekTable
// [6]: https://godoc.org/github.com/mewkiz/flac/meta#VorbisComment
// [7]: https://godoc.org/github.com/mewkiz/flac/meta#CueSheet
// [8]: https://godoc.org/github.com/mewkiz/flac/meta#Picture
package meta

import (
Expand All @@ -33,7 +33,7 @@ import (
"io/ioutil"
"os"

"gopkg.in/mewpkg/bits.v1"
"github.com/mewpkg/bits"
)

// A Block contains the header and body of a metadata block.
Expand Down
4 changes: 2 additions & 2 deletions meta/meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"reflect"
"testing"

"gopkg.in/mewkiz/flac.v1"
"gopkg.in/mewkiz/flac.v1/meta"
"github.com/mewkiz/flac"
"github.com/mewkiz/flac/meta"
)

var golden = []struct {
Expand Down
2 changes: 1 addition & 1 deletion meta/streaminfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"io"

"gopkg.in/mewpkg/bits.v1"
"github.com/mewpkg/bits"
)

// StreamInfo contains the basic properties of a FLAC audio stream, such as its
Expand Down

0 comments on commit 9970b89

Please sign in to comment.