Run of fresh-snapshots for golang-github-leodido-ragel-machinery

Merge these changes:

Summary

Merged new upstream version: 0.0~git20190525.5f46317 (was: 0.0~git20181214.299bdde).

Diff

Branch: main

diff --git a/debian/changelog b/debian/changelog
index 5e30c3b..0068de1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-github-leodido-ragel-machinery (0.0~git20190525.5f46317-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Sun, 20 Mar 2022 10:15:13 -0000
+
 golang-github-leodido-ragel-machinery (0.0~git20181214.299bdde-1) unstable; urgency=medium
 
   * Initial release (Closes: #919692)
diff --git a/examples/example_test.go b/examples/example_test.go
index dc16441..9926ad3 100644
--- a/examples/example_test.go
+++ b/examples/example_test.go
@@ -18,7 +18,7 @@ example X
 		fmt.Println("RECV", elem)
 	}
 	// Output:
-	// OnEOF
+	// OnErr EOF
 	// OnCompletion
 	// RECV example 0
 	// RECV example 1
@@ -36,7 +36,7 @@ $3
 		fmt.Println("RECV", item)
 	}
 	// Output:
-	// OnEOF
+	// OnErr EOF
 	// OnCompletion
 	// RECV $1
 	// 2
@@ -51,7 +51,7 @@ func Example_multiline_err() {
 		fmt.Println("RECV", item)
 	}
 	// Output:
-	// OnErr
+	// OnErr unexpected EOF
 	// $1
 	// OnCompletion
 }
diff --git a/examples/makefile b/examples/makefile
index 08d1a65..a9504d0 100644
--- a/examples/makefile
+++ b/examples/makefile
@@ -19,6 +19,7 @@ multiline.go: multiline.go.rl
 tests: *_test.go
 	go test -race -timeout 10s -v ./...
 
+# note: this requires gawk
 .PHONY: snake2camel
 snake2camel:
 	@awk -i inplace '{ \
diff --git a/examples/multiline.go b/examples/multiline.go
index 08d1e73..d7e8a95 100644
--- a/examples/multiline.go
+++ b/examples/multiline.go
@@ -127,8 +127,8 @@ func (m *multilineMachine) Exec(s *parser.State) (int, int) {
 	return p, pe
 }
 
-func (m *multilineMachine) OnErr(c []byte) {
-	fmt.Println("OnErr")
+func (m *multilineMachine) OnErr(c []byte, e error) {
+	fmt.Println("OnErr", e)
 	if len(c) > 0 {
 		fmt.Println(string(c))
 	}
diff --git a/examples/multiline.go.rl b/examples/multiline.go.rl
index 6526398..6332888 100644
--- a/examples/multiline.go.rl
+++ b/examples/multiline.go.rl
@@ -27,14 +27,14 @@ action on_init {
 
 t = 10;
 
-main := 
+main :=
     start: (
         # Note that corpus can contain trailers - ie., can span more lines in this case.
         '$' >on_init (digit | t)+ -> trailer
     ),
     trailer: (
         t >on_trailer -> final |
-        t >on_trailer -> start 
+        t >on_trailer -> start
     );
 }%%
 
@@ -57,8 +57,8 @@ func (m *multilineMachine) Exec(s *parser.State) (int, int) {
     return p, pe
 }
 
-func (m *multilineMachine) OnErr(c []byte) {
-    fmt.Println("OnErr")
+func (m *multilineMachine) OnErr(c []byte, e error) {
+    fmt.Println("OnErr", e)
     if len(c) > 0 {
         fmt.Println(string(c))
     }
@@ -83,7 +83,7 @@ func (m *multilineMachine) Parse(r io.Reader) {
     p := parser.New(
         parser.ArbitraryReader(r, 10),          // How to read the stream
         m,                                      // How to parse it
-        parser.WithStart(%%{ write start; }%%), // Options    
+        parser.WithStart(%%{ write start; }%%), // Options
     )
     p.Parse()
 }
\ No newline at end of file
diff --git a/examples/newlines.go b/examples/newlines.go
index 127e26e..0526ae4 100644
--- a/examples/newlines.go
+++ b/examples/newlines.go
@@ -2,8 +2,9 @@ package examples
 
 import (
 	"fmt"
-	parser "github.com/leodido/ragel-machinery/parser"
 	"io"
+
+	parser "github.com/leodido/ragel-machinery/parser"
 )
 
 const newlinesStart int = 1
@@ -209,8 +210,8 @@ func (m *newlinesMachine) Exec(s *parser.State) (int, int) {
 	return p, pe
 }
 
-func (m *newlinesMachine) OnErr(c []byte) {
-	fmt.Println("OnErr")
+func (m *newlinesMachine) OnErr(c []byte, e error) {
+	fmt.Println("OnErr", e)
 	if len(c) > 0 {
 		fmt.Println(string(c))
 	}
diff --git a/examples/newlines.go.rl b/examples/newlines.go.rl
index fe04a8a..2ad96c6 100644
--- a/examples/newlines.go.rl
+++ b/examples/newlines.go.rl
@@ -27,7 +27,7 @@ type newlinesMachine struct{
 
 // Exec implements the parser.Parser interface.
 func (m *newlinesMachine) Exec(s *parser.State) (int, int) {
-    // Tell it to parse from the start for each byte(10) delimited incoming chunk 
+    // Tell it to parse from the start for each byte(10) delimited incoming chunk
     cs := %%{ write start; }%%
     // Retrieve previously stored parsing variables
     _, p, pe, eof, data := s.Get()
@@ -38,8 +38,8 @@ func (m *newlinesMachine) Exec(s *parser.State) (int, int) {
     return p, pe
 }
 
-func (m *newlinesMachine) OnErr(c []byte) {
-    fmt.Println("OnErr")
+func (m *newlinesMachine) OnErr(c []byte, e error) {
+    fmt.Println("OnErr", e)
     if len(c) > 0 {
         fmt.Println(string(c))
     }
diff --git a/go.sum b/go.sum
index abc3d78..5f4f636 100644
--- a/go.sum
+++ b/go.sum
@@ -1 +1,2 @@
+github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
 github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=

Branch: pristine-tar

diff --git a/golang-github-leodido-ragel-machinery_0.0~git20190525.5f46317.orig.tar.gz.delta b/golang-github-leodido-ragel-machinery_0.0~git20190525.5f46317.orig.tar.gz.delta
new file mode 100644
index 0000000..d9b271f
Binary files /dev/null and b/golang-github-leodido-ragel-machinery_0.0~git20190525.5f46317.orig.tar.gz.delta differ
diff --git a/golang-github-leodido-ragel-machinery_0.0~git20190525.5f46317.orig.tar.gz.id b/golang-github-leodido-ragel-machinery_0.0~git20190525.5f46317.orig.tar.gz.id
new file mode 100644
index 0000000..e3236f4
--- /dev/null
+++ b/golang-github-leodido-ragel-machinery_0.0~git20190525.5f46317.orig.tar.gz.id
@@ -0,0 +1 @@
+ae3207110b76b8e45eb820ec119f2eb233611693

Branch: upstream

Tag: upstream/0.0_git20190525.5f46317
diff --git a/examples/example_test.go b/examples/example_test.go
index dc16441..9926ad3 100644
--- a/examples/example_test.go
+++ b/examples/example_test.go
@@ -18,7 +18,7 @@ example X
 		fmt.Println("RECV", elem)
 	}
 	// Output:
-	// OnEOF
+	// OnErr EOF
 	// OnCompletion
 	// RECV example 0
 	// RECV example 1
@@ -36,7 +36,7 @@ $3
 		fmt.Println("RECV", item)
 	}
 	// Output:
-	// OnEOF
+	// OnErr EOF
 	// OnCompletion
 	// RECV $1
 	// 2
@@ -51,7 +51,7 @@ func Example_multiline_err() {
 		fmt.Println("RECV", item)
 	}
 	// Output:
-	// OnErr
+	// OnErr unexpected EOF
 	// $1
 	// OnCompletion
 }
diff --git a/examples/makefile b/examples/makefile
index 08d1a65..a9504d0 100644
--- a/examples/makefile
+++ b/examples/makefile
@@ -19,6 +19,7 @@ multiline.go: multiline.go.rl
 tests: *_test.go
 	go test -race -timeout 10s -v ./...
 
+# note: this requires gawk
 .PHONY: snake2camel
 snake2camel:
 	@awk -i inplace '{ \
diff --git a/examples/multiline.go b/examples/multiline.go
index 08d1e73..d7e8a95 100644
--- a/examples/multiline.go
+++ b/examples/multiline.go
@@ -127,8 +127,8 @@ func (m *multilineMachine) Exec(s *parser.State) (int, int) {
 	return p, pe
 }
 
-func (m *multilineMachine) OnErr(c []byte) {
-	fmt.Println("OnErr")
+func (m *multilineMachine) OnErr(c []byte, e error) {
+	fmt.Println("OnErr", e)
 	if len(c) > 0 {
 		fmt.Println(string(c))
 	}
diff --git a/examples/multiline.go.rl b/examples/multiline.go.rl
index 6526398..6332888 100644
--- a/examples/multiline.go.rl
+++ b/examples/multiline.go.rl
@@ -27,14 +27,14 @@ action on_init {
 
 t = 10;
 
-main := 
+main :=
     start: (
         # Note that corpus can contain trailers - ie., can span more lines in this case.
         '$' >on_init (digit | t)+ -> trailer
     ),
     trailer: (
         t >on_trailer -> final |
-        t >on_trailer -> start 
+        t >on_trailer -> start
     );
 }%%
 
@@ -57,8 +57,8 @@ func (m *multilineMachine) Exec(s *parser.State) (int, int) {
     return p, pe
 }
 
-func (m *multilineMachine) OnErr(c []byte) {
-    fmt.Println("OnErr")
+func (m *multilineMachine) OnErr(c []byte, e error) {
+    fmt.Println("OnErr", e)
     if len(c) > 0 {
         fmt.Println(string(c))
     }
@@ -83,7 +83,7 @@ func (m *multilineMachine) Parse(r io.Reader) {
     p := parser.New(
         parser.ArbitraryReader(r, 10),          // How to read the stream
         m,                                      // How to parse it
-        parser.WithStart(%%{ write start; }%%), // Options    
+        parser.WithStart(%%{ write start; }%%), // Options
     )
     p.Parse()
 }
\ No newline at end of file
diff --git a/examples/newlines.go b/examples/newlines.go
index 127e26e..0526ae4 100644
--- a/examples/newlines.go
+++ b/examples/newlines.go
@@ -2,8 +2,9 @@ package examples
 
 import (
 	"fmt"
-	parser "github.com/leodido/ragel-machinery/parser"
 	"io"
+
+	parser "github.com/leodido/ragel-machinery/parser"
 )
 
 const newlinesStart int = 1
@@ -209,8 +210,8 @@ func (m *newlinesMachine) Exec(s *parser.State) (int, int) {
 	return p, pe
 }
 
-func (m *newlinesMachine) OnErr(c []byte) {
-	fmt.Println("OnErr")
+func (m *newlinesMachine) OnErr(c []byte, e error) {
+	fmt.Println("OnErr", e)
 	if len(c) > 0 {
 		fmt.Println(string(c))
 	}
diff --git a/examples/newlines.go.rl b/examples/newlines.go.rl
index fe04a8a..2ad96c6 100644
--- a/examples/newlines.go.rl
+++ b/examples/newlines.go.rl
@@ -27,7 +27,7 @@ type newlinesMachine struct{
 
 // Exec implements the parser.Parser interface.
 func (m *newlinesMachine) Exec(s *parser.State) (int, int) {
-    // Tell it to parse from the start for each byte(10) delimited incoming chunk 
+    // Tell it to parse from the start for each byte(10) delimited incoming chunk
     cs := %%{ write start; }%%
     // Retrieve previously stored parsing variables
     _, p, pe, eof, data := s.Get()
@@ -38,8 +38,8 @@ func (m *newlinesMachine) Exec(s *parser.State) (int, int) {
     return p, pe
 }
 
-func (m *newlinesMachine) OnErr(c []byte) {
-    fmt.Println("OnErr")
+func (m *newlinesMachine) OnErr(c []byte, e error) {
+    fmt.Println("OnErr", e)
     if len(c) > 0 {
         fmt.Println(string(c))
     }
diff --git a/go.sum b/go.sum
index abc3d78..5f4f636 100644
--- a/go.sum
+++ b/go.sum
@@ -1 +1,2 @@
+github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
 github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=

Publish Blockers

  • ☑ run was successful
  • ☑ package has not been removed from the archive
  • ☒ command changed from DEB_UPDATE_CHANGELOG=leave deb-new-upstream --snapshot --refresh-patches to DEB_UPDATE_CHANGELOG=auto deb-new-upstream --snapshot --refresh-patches
  • ☒ not yet reviewed, but review needed
  • ☑ 0 publish attempts so far.not currently attempting to back off
  • ☒ merge proposals for the package maintainer are currently being rate-limited (open: 1383, max open: 300)
  • ☑ change set 8158fc20-6ce3-428a-a685-6014f5e2e9e5 is ready

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots golang-github-leodido-ragel-machinery-dev

Lintian Result

Full worker log Full build log