Run of fresh-snapshots for golang-github-philhofer-fwd

Merge these changes:

Summary

Merged new upstream version: 1.1.1+git20210816.1.8be6da3 (was: 1.1.1).

Diff

Branch: main

diff --git a/debian/changelog b/debian/changelog
index 4210572..2153a6f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
-golang-github-philhofer-fwd (1.1.1-2) UNRELEASED; urgency=medium
+golang-github-philhofer-fwd (1.1.1+git20210816.1.8be6da3-1) UNRELEASED; urgency=medium
 
+  [ Tianon Gravi ]
   * Team upload.
   * Remove self from Uploaders
 
- -- Tianon Gravi <tianon@debian.org>  Wed, 23 Feb 2022 11:11:32 -0800
+  [ Debian Janitor ]
+  * New upstream snapshot.
+
+ -- Tianon Gravi <tianon@debian.org>  Thu, 24 Feb 2022 02:09:28 -0000
 
 golang-github-philhofer-fwd (1.1.1-1) unstable; urgency=medium
 
diff --git a/writer_tinygo.go b/writer_tinygo.go
new file mode 100644
index 0000000..3b06e99
--- /dev/null
+++ b/writer_tinygo.go
@@ -0,0 +1,18 @@
+// +build tinygo
+
+package fwd
+
+import (
+	"reflect"
+	"unsafe"
+)
+
+// unsafe cast string as []byte
+func unsafestr(b string) []byte {
+	l := uintptr(len(b))
+	return *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{
+		Len:  l,
+		Cap:  l,
+		Data: (*reflect.StringHeader)(unsafe.Pointer(&b)).Data,
+	}))
+}
diff --git a/writer_unsafe.go b/writer_unsafe.go
index a0bf453..8ab5a4e 100644
--- a/writer_unsafe.go
+++ b/writer_unsafe.go
@@ -1,4 +1,4 @@
-// +build !appengine
+// +build !appengine,!tinygo
 
 package fwd
 
@@ -8,11 +8,12 @@ import (
 )
 
 // unsafe cast string as []byte
-func unsafestr(b string) []byte {
-	l := len(b)
-	return *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{
-		Len:  l,
-		Cap:  l,
-		Data: (*reflect.StringHeader)(unsafe.Pointer(&b)).Data,
-	}))
+func unsafestr(s string) []byte {
+	var b []byte
+	sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s))
+	bHdr := (*reflect.SliceHeader)(unsafe.Pointer(&b))
+	bHdr.Data = sHdr.Data
+	bHdr.Len = sHdr.Len
+	bHdr.Cap = sHdr.Len
+	return b
 }

Branch: pristine-tar

diff --git a/golang-github-philhofer-fwd_1.1.1+git20210816.1.8be6da3.orig.tar.gz.delta b/golang-github-philhofer-fwd_1.1.1+git20210816.1.8be6da3.orig.tar.gz.delta
new file mode 100644
index 0000000..a7efd84
Binary files /dev/null and b/golang-github-philhofer-fwd_1.1.1+git20210816.1.8be6da3.orig.tar.gz.delta differ
diff --git a/golang-github-philhofer-fwd_1.1.1+git20210816.1.8be6da3.orig.tar.gz.id b/golang-github-philhofer-fwd_1.1.1+git20210816.1.8be6da3.orig.tar.gz.id
new file mode 100644
index 0000000..b74bb47
--- /dev/null
+++ b/golang-github-philhofer-fwd_1.1.1+git20210816.1.8be6da3.orig.tar.gz.id
@@ -0,0 +1 @@
+0ab1c6dd7af82f386b4f6ca12707528060fb98bf

Branch: upstream

Tag: upstream/1.1.1+git20210816.1.8be6da3
diff --git a/writer_tinygo.go b/writer_tinygo.go
new file mode 100644
index 0000000..3b06e99
--- /dev/null
+++ b/writer_tinygo.go
@@ -0,0 +1,18 @@
+// +build tinygo
+
+package fwd
+
+import (
+	"reflect"
+	"unsafe"
+)
+
+// unsafe cast string as []byte
+func unsafestr(b string) []byte {
+	l := uintptr(len(b))
+	return *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{
+		Len:  l,
+		Cap:  l,
+		Data: (*reflect.StringHeader)(unsafe.Pointer(&b)).Data,
+	}))
+}
diff --git a/writer_unsafe.go b/writer_unsafe.go
index a0bf453..8ab5a4e 100644
--- a/writer_unsafe.go
+++ b/writer_unsafe.go
@@ -1,4 +1,4 @@
-// +build !appengine
+// +build !appengine,!tinygo
 
 package fwd
 
@@ -8,11 +8,12 @@ import (
 )
 
 // unsafe cast string as []byte
-func unsafestr(b string) []byte {
-	l := len(b)
-	return *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{
-		Len:  l,
-		Cap:  l,
-		Data: (*reflect.StringHeader)(unsafe.Pointer(&b)).Data,
-	}))
+func unsafestr(s string) []byte {
+	var b []byte
+	sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s))
+	bHdr := (*reflect.SliceHeader)(unsafe.Pointer(&b))
+	bHdr.Data = sHdr.Data
+	bHdr.Len = sHdr.Len
+	bHdr.Cap = sHdr.Len
+	return b
 }

Publish Blockers

  • ☑ run was successful
  • ☑ package has not been removed from the archive
  • ☑ command has not changed
  • ☒ 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: 529, max open: 300)
  • ☑ change set d63fa6ea-36ef-4843-b22c-3d2f45136b83 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-philhofer-fwd-dev

Lintian Result

Full worker log Full build log