New Upstream Release - golang-github-rkoesters-xdg
Ready changes
Summary
Merged new upstream version: 0.0~git20230316.3908156 (was: 0.0~git20220426.81da15f).
Resulting package
Built on 2023-05-21T04:46 (took 4m6s)
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-rkoesters-xdg-dev
Lintian Result
Diff
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..8789fde
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,11 @@
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "daily"
+
+ - package-ecosystem: "gomod"
+ directory: "/"
+ schedule:
+ interval: "daily"
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 0000000..3fc0fb9
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,65 @@
+---
+
+name: "CodeQL"
+
+"on":
+ push:
+ branches: [master]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: [master]
+ schedule:
+ - cron: '44 21 * * 5'
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: ['go']
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v2
+ with:
+ languages: ${{ matrix.language }}
+ # If you wish to specify custom queries, you can do so here or in a
+ # config file. By default, queries listed here will override any
+ # specified in a config file. Prefix the list here with "+" to use
+ # these queries and those in the config file.
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
+
+ - name: Set up GITHUB_ENV
+ run: |
+ go version | sed 's/^go version /GOVERSION=/' | \
+ tr ' /' '-' >>$GITHUB_ENV
+ go env GOPATH | sed 's/^/GOPATH=/' >>$GITHUB_ENV
+ go env GOCACHE | sed 's/^/GOCACHE=/' >>$GITHUB_ENV
+
+ - name: Set up Go cache
+ uses: actions/cache@v3
+ with:
+ path: |
+ ${{ env.GOCACHE }}
+ ${{ env.GOPATH }}/pkg/mod
+ key: >
+ ${{ github.workflow }}-${{ runner.os }}-${{ env.GOVERSION }}-${{
+ hashFiles('**/go.sum') }}
+ restore-keys: >
+ ${{ github.workflow }}-${{ runner.os }}-${{ env.GOVERSION }}-
+
+ - run: go build -v github.com/rkoesters/xdg/...
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v2
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
new file mode 100644
index 0000000..3f57aa4
--- /dev/null
+++ b/.github/workflows/go.yml
@@ -0,0 +1,66 @@
+---
+
+name: CI
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ go:
+ - 1.11.x # debian buster
+ - 1.13.x # ubuntu focal
+ - 1.15.x # debian bullseye
+ - 1.x # latest
+
+ name: Go ${{ matrix.go }}
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Set up Go
+ uses: actions/setup-go@v4
+ with:
+ go-version: ${{ matrix.go }}
+
+ - name: Set up build dependencies
+ run: |
+ sudo apt-get update -y
+ sudo apt-get install -y -q golint
+
+ - name: Set up GITHUB_ENV
+ run: >
+ go version |
+ sed 's/^go version /GOVERSION=/' |
+ tr ' /' '-' >>$GITHUB_ENV
+
+ go env GOPATH | sed 's/^/GOPATH=/' >>$GITHUB_ENV
+
+ go env GOCACHE | sed 's/^/GOCACHE=/' >>$GITHUB_ENV
+
+ - name: Set up Go cache
+ uses: actions/cache@v3
+ with:
+ path: |
+ ${{ env.GOCACHE }}
+ ${{ env.GOPATH }}/pkg/mod
+ key: ${{ env.GOVERSION }}-cache-${{ hashFiles('**/go.sum') }}
+ restore-keys: ${{ env.GOVERSION }}-cache-
+
+ - name: Set up user directories
+ run: xdg-user-dirs-update
+
+ - name: Set up trash
+ run: |
+ mkdir -p "$HOME/.local/share/Trash/files"
+ touch "$HOME/.local/share/Trash/files/file.txt"
+ mkdir -p "$HOME/.local/share/Trash/info"
+ printf '[Trash Info]\nPath=%s\nDeletionDate=%s\n' "$HOME/file.txt" "$(date '+%Y-%m-%dT%H:%M:%S')" >"$HOME/.local/share/Trash/info/file.txt.trashinfo"
+
+ - run: golint github.com/rkoesters/xdg/...
+ - run: go build -v github.com/rkoesters/xdg/...
+ - run: go test -v -cover github.com/rkoesters/xdg/...
+ - run: go vet -v github.com/rkoesters/xdg/...
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 858bf53..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-language: go
-
-go:
- - "1.6.x" # ubuntu 16.04
- - "1.7.x" # debian stable
- - "1.10.x" # ubuntu 18.04
- - "1.x" # latest release
-
-addons:
- apt:
- packages:
- - xdg-user-dirs
-
-before_script:
- - xdg-user-dirs-update
- - mkdir -p "$HOME/.local/share/Trash/files"
- - touch "$HOME/.local/share/Trash/files/file.txt"
- - mkdir -p "$HOME/.local/share/Trash/info"
- - printf '[Trash Info]\nPath=%s\nDeletionDate=%s\n' "$HOME/file.txt" "$(date '+%Y-%m-%dT%H:%M:%S')" >"$HOME/.local/share/Trash/info/file.txt.trashinfo"
-
-script:
- - go test -cover ./...
diff --git a/debian/changelog b/debian/changelog
index d4e6b0e..6d617a6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+golang-github-rkoesters-xdg (0.0~git20230316.3908156-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Sun, 21 May 2023 04:42:36 -0000
+
golang-github-rkoesters-xdg (0.0~git20181125.edd15b8-2) unstable; urgency=medium
* Team upload.
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..0e99408
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module github.com/rkoesters/xdg
+
+go 1.13
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..e69de29
Debdiff
[The following lists of changes regard files as different if they have different names, permissions or owners.]
Files in second set of .debs but not in first
-rw-r--r-- root/root /usr/share/gocode/src/github.com/rkoesters/xdg/go.mod -rw-r--r-- root/root /usr/share/gocode/src/github.com/rkoesters/xdg/go.sum
No differences were encountered in the control files