Skip to content

Commit

Permalink
all: revert switch to a Go module in master
Browse files Browse the repository at this point in the history
We'll keep the addition of the module files and the change of import
paths in a separate module branch.

Fixes #267.
  • Loading branch information
mvdan committed Jul 20, 2018
1 parent 9d6ee0f commit 1831d69
Show file tree
Hide file tree
Showing 25 changed files with 30 additions and 50 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Expand Up @@ -3,15 +3,12 @@ language: go
matrix:
include:
- os: linux
dist: trusty
sudo: false
go: 1.9.x
- os: linux
dist: trusty
sudo: false
go: 1.10.x
- os: linux
go: "1.10"
- os: osx
osx_image: xcode9.2
go: 1.10.x

go_import_path: mvdan.cc/sh
Expand Down
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -6,9 +6,8 @@
[![Coverage Status](https://coveralls.io/repos/github/mvdan/sh/badge.svg?branch=master)](https://coveralls.io/github/mvdan/sh)

A shell parser, formatter and interpreter. Supports [POSIX Shell], [Bash] and
[mksh]. Requires Go 1.9 or later with [minimal support for Go
modules](https://github.com/golang/go/issues/25069), such as Go 1.9.7 or Go
1.10.3.
[mksh]. Requires Go 1.9 or later. A Go module is available via the `module`
branch.

### shfmt

Expand Down
2 changes: 1 addition & 1 deletion _js/main.go
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/gopherjs/gopherjs/js"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/gosh/main.go
Expand Up @@ -12,8 +12,8 @@ import (

"golang.org/x/crypto/ssh/terminal"

"mvdan.cc/sh/v2/interp"
"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/interp"
"mvdan.cc/sh/syntax"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/shfmt/json.go
Expand Up @@ -9,7 +9,7 @@ import (
"io"
"reflect"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func writeJSON(w io.Writer, f *syntax.File, pretty bool) error {
Expand Down
2 changes: 1 addition & 1 deletion cmd/shfmt/json_test.go
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"testing"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

var jsonTests = []struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/shfmt/main.go
Expand Up @@ -14,8 +14,8 @@ import (
"path/filepath"
"regexp"

"mvdan.cc/sh/v2/fileutil"
"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/fileutil"
"mvdan.cc/sh/syntax"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/shfmt/main_test.go
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"testing"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func TestMain(m *testing.M) {
Expand Down
7 changes: 0 additions & 7 deletions go.mod

This file was deleted.

9 changes: 0 additions & 9 deletions go.sum

This file was deleted.

2 changes: 1 addition & 1 deletion interp/arith.go
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"strconv"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func (r *Runner) arithm(expr syntax.ArithmExpr) int {
Expand Down
2 changes: 1 addition & 1 deletion interp/builtin.go
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
"strings"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func isBuiltin(name string) bool {
Expand Down
2 changes: 1 addition & 1 deletion interp/expand.go
Expand Up @@ -14,7 +14,7 @@ import (
"strconv"
"strings"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func (r *Runner) expandFormat(format string, args []string) (int, string, error) {
Expand Down
2 changes: 1 addition & 1 deletion interp/interp.go
Expand Up @@ -17,7 +17,7 @@ import (
"sync"
"time"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

// A Runner interprets shell programs. It cannot be reused once a
Expand Down
2 changes: 1 addition & 1 deletion interp/interp_test.go
Expand Up @@ -18,7 +18,7 @@ import (
"testing"
"time"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func BenchmarkRun(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion interp/module_test.go
Expand Up @@ -15,7 +15,7 @@ import (
"testing"
"time"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

var modCases = []struct {
Expand Down
2 changes: 1 addition & 1 deletion interp/param.go
Expand Up @@ -13,7 +13,7 @@ import (
"unicode"
"unicode/utf8"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func anyOfLit(v interface{}, vals ...string) string {
Expand Down
2 changes: 1 addition & 1 deletion interp/test.go
Expand Up @@ -11,7 +11,7 @@ import (

"golang.org/x/crypto/ssh/terminal"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

// non-empty string is true, empty string is false
Expand Down
2 changes: 1 addition & 1 deletion interp/test_classic.go
Expand Up @@ -6,7 +6,7 @@ package interp
import (
"fmt"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

const illegalTok = 0
Expand Down
2 changes: 1 addition & 1 deletion interp/vars.go
Expand Up @@ -9,7 +9,7 @@ import (
"sort"
"strings"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

type Environ interface {
Expand Down
4 changes: 2 additions & 2 deletions shell/expand.go
Expand Up @@ -7,8 +7,8 @@ import (
"context"
"strings"

"mvdan.cc/sh/v2/interp"
"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/interp"
"mvdan.cc/sh/syntax"
)

// Expand performs shell expansion on s, using env to resolve variables.
Expand Down
4 changes: 2 additions & 2 deletions shell/source.go
Expand Up @@ -10,8 +10,8 @@ import (
"os"
"time"

"mvdan.cc/sh/v2/interp"
"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/interp"
"mvdan.cc/sh/syntax"
)

// SourceFile sources a shell file from disk and returns the variables
Expand Down
4 changes: 2 additions & 2 deletions shell/source_test.go
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"testing"

"mvdan.cc/sh/v2/interp"
"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/interp"
"mvdan.cc/sh/syntax"

"github.com/kr/pretty"
)
Expand Down
2 changes: 1 addition & 1 deletion syntax/example_test.go
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"strings"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion syntax/example_walk_test.go
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"strings"

"mvdan.cc/sh/v2/syntax"
"mvdan.cc/sh/syntax"
)

func ExampleWalk() {
Expand Down

0 comments on commit 1831d69

Please sign in to comment.