New Upstream Release - golang-github-muesli-go-app-paths
Ready changes
Summary
Merged new upstream version: 0.2.2 (was: 0.2.1).
Resulting package
Built on 2022-04-18T18:26 (took 4m11s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-releases golang-github-muesli-go-app-paths-dev
Lintian Result
Diff
diff --git a/README.md b/README.md
index bc3ba34..8abb3c8 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://pkg.go.dev/github.com/muesli/go-app-paths?tab=doc)
[![Build Status](https://github.com/muesli/go-app-paths/workflows/build/badge.svg)](https://github.com/muesli/go-app-paths/actions)
[![Coverage Status](https://coveralls.io/repos/github/muesli/go-app-paths/badge.svg?branch=master)](https://coveralls.io/github/muesli/go-app-paths?branch=master)
-[![Go ReportCard](http://goreportcard.com/badge/muesli/go-app-paths)](http://goreportcard.com/report/muesli/go-app-paths)
+[![Go ReportCard](https://goreportcard.com/badge/muesli/go-app-paths)](https://goreportcard.com/report/muesli/go-app-paths)
Lets you retrieve platform-specific paths (like directories for app-data, cache,
config, and logs). It is fully compliant with the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html)
@@ -13,7 +13,7 @@ on Unix, but also provides implementations for macOS and Windows systems.
## Installation
Make sure you have a working Go environment (Go 1.2 or higher is required).
-See the [install instructions](http://golang.org/doc/install.html).
+See the [install instructions](https://golang.org/doc/install.html).
To install go-app-paths, simply run:
@@ -34,6 +34,15 @@ retrieve user- and/or system-specific base directories and paths:
scope := gap.NewScope(gap.User, "app")
```
+Alternatively, you can initialize `gap` with an additional vendor name:
+
+```go
+scope := gap.NewVendorScope(gap.User, "vendor", "app")
+```
+
+This will cause the `app` directory to be prefixed by a `vendor` directory in
+all the following tables.
+
### Directories
`DataDirs` retrieves a priority-sorted list of data directories:
diff --git a/debian/changelog b/debian/changelog
index ba7f714..8de0093 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-github-muesli-go-app-paths (0.2.2-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk> Mon, 18 Apr 2022 18:22:36 -0000
+
golang-github-muesli-go-app-paths (0.2.1-2) unstable; urgency=medium
* Source-only upload for migration to testing
diff --git a/paths_darwin.go b/paths_darwin.go
index b420af9..4c68f0a 100644
--- a/paths_darwin.go
+++ b/paths_darwin.go
@@ -1,3 +1,4 @@
+//go:build darwin
// +build darwin
package gap
diff --git a/paths_darwin_test.go b/paths_darwin_test.go
index 0fd22db..b5427cb 100644
--- a/paths_darwin_test.go
+++ b/paths_darwin_test.go
@@ -1,3 +1,4 @@
+//go:build darwin
// +build darwin
package gap
diff --git a/paths_unix.go b/paths_unix.go
index 4c1ec58..cef65cb 100644
--- a/paths_unix.go
+++ b/paths_unix.go
@@ -1,3 +1,4 @@
+//go:build !darwin && !windows
// +build !darwin,!windows
package gap
diff --git a/paths_unix_test.go b/paths_unix_test.go
index 9578e47..f8a1167 100644
--- a/paths_unix_test.go
+++ b/paths_unix_test.go
@@ -1,3 +1,4 @@
+//go:build !darwin && !windows
// +build !darwin,!windows
package gap
diff --git a/paths_windows.go b/paths_windows.go
index d0edfce..d274687 100644
--- a/paths_windows.go
+++ b/paths_windows.go
@@ -1,3 +1,4 @@
+//go:build windows
// +build windows
package gap
diff --git a/paths_windows_test.go b/paths_windows_test.go
index 5a9a77f..4ea6f1d 100644
--- a/paths_windows_test.go
+++ b/paths_windows_test.go
@@ -1,3 +1,4 @@
+//go:build windows
// +build windows
package gap
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files