Skip to content

Commit 0adcb10

Browse files
committed
Hmmm, "go install" doesn't like the "-ftest" file, remove for now
$ go install github.com/benhoyt/goawk@latest go: downloading github.com/benhoyt/goawk v1.8.0 go install: github.com/benhoyt/goawk@latest: github.com/benhoyt/goawk@v1.8.0: verifying module: github.com/benhoyt/goawk@v1.8.0: reading https://sum.golang.org/lookup/github.com/benhoyt/goawk@v1.8.0: 410 Gone server response: not found: create zip: -ftest: malformed file path "-ftest": leading dash
1 parent 3d9292c commit 0adcb10

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

-ftest

Lines changed: 0 additions & 1 deletion
This file was deleted.

goawk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import (
4343
)
4444

4545
const (
46-
version = "v1.8.0"
46+
version = "v1.8.1"
4747
copyright = "GoAWK " + version + " - Copyright (c) 2019 Ben Hoyt"
4848
shortUsage = "usage: goawk [-F fs] [-v var=value] [-f progfile | 'prog'] [file ...]"
4949
longUsage = `Standard AWK arguments:

goawk_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,9 @@ func TestCommandLine(t *testing.T) {
335335
{[]string{`$0`, "testdata/g.1", "-", "testdata/g.2"}, "STDIN", "ONE\nSTDIN\nTWO\n", ""},
336336
{[]string{`$0`, "testdata/g.1", "-", "testdata/g.2", "-"}, "STDIN", "ONE\nSTDIN\nTWO\n", ""},
337337
{[]string{"-F", " ", "--", "$0", "testdata/g.1"}, "", "ONE\n", ""},
338-
{[]string{"--", "$0", "-ftest"}, "", "used in tests; do not delete\n", ""}, // Issue #53
339-
{[]string{"$0", "-ftest"}, "", "used in tests; do not delete\n", ""},
338+
// I've deleted the "-ftest" file for now as it was causing problems with "go install" zip files
339+
// {[]string{"--", "$0", "-ftest"}, "", "used in tests; do not delete\n", ""}, // Issue #53
340+
// {[]string{"$0", "-ftest"}, "", "used in tests; do not delete\n", ""},
340341

341342
// Specifying field separator with -F
342343
{[]string{`{ print $1, $3 }`}, "1 2 3\n4 5 6", "1 3\n4 6\n", ""},

0 commit comments

Comments
 (0)