20 Commits

Author SHA1 Message Date
Dominik Schulz
a46a3bed85
[fix] Use Go 1.24 instead of Go 1.25 (#3226)
Most distributions do not package 1.25 yet and we do not rely on 1.25
features so far. Make sure to propagate the go.mod version and not the
Go version used to build/run in the postrel helper.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2025-09-16 22:17:42 +02:00
Dominik Schulz
1cd24d30dd
Fix two findings in the Dockerfile (#3151)
Switch to the current recommendation of defining env vars and fix a typo in the goflags_arg variable.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2025-05-08 08:28:38 +02:00
Dominik Schulz
7281ca8ab4
[chore] Migrate to golangci-lint v2 (#3104)
* [chore] Migrate to golangci-lint v2

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [chore] Fix more lint issues

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [chore] Fix more lint issue

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [chore] Fix more lint issues

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [chore] Add more package comments.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [chore] Fix golangci-lint config and the remaining checks

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [fix] Use Go 1.24

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [fix] Fix container builds

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Fix more failing tests

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Fix test failure

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Fix another len assertion

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Move location tests

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [fix] Fix most remaining lint issues

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [fix] Only run XDG specific tests on linux

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* [fix] Attempt to address on source of flaky failures

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

---------

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2025-04-17 08:05:43 +02:00
sudoforge
723dac049a
feat: add a new build job: container (#3109)
This change adds a new job in `//.github/workflows:build.yml` named
`container`, to build the container image. This is being added as a
quick hack to fix a critical issue with this repository (in regards to
its container image), namely, that it is not built except for releases.

This means that both source code and configuration changes that break
the container build will not be caught until an attempt to create a new
release is made (more specifically, given the current configuration of
the `//.github/workflows:container.yml` pipeline, whenever a new ref is
pushed up matching `refs/tags/v*`).

An example of this is a recent change to the required version of `go`,
made in commit 4c2caf3e9b6f1c65857c0d33208e3273c2ab7eb3 (ca. October
2024), which did not udpate the base `golang` image referenced in
`//:Dockerfile`.

As a requirement to pass the new pipeline, this change also updates the
`golang` image we source in `//:Dockerfile`, in order to fix the build.

Signed-off-by: sudoforge <no-reply@sudoforge.com>
2025-04-07 10:40:01 +02:00
sudoforge
399f0ca7f1
feat: use fully qualified registry URIs (#3107)
This change refactors container image references to use a fully
qualified registry URI (by adding the URI that `docker` implies
automatically, `docker.io/library`). This improves support for
other tools like `podman` or `buildah`.

Signed-off-by: sudoforge <no-reply@sudoforge.com>
2025-04-07 10:35:22 +02:00
Dominik Schulz
b450b62173 bugfix: Update Docker go image and remove dropped goreleaser flag
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2024-08-03 18:17:12 +02:00
Dominik Schulz
c2176f7d71
[chore] Upgrade to Go 1.22 (#2805)
* [chore] Upgrade to Go 1.22

Also upgrades dependencies and fixes a flaky pwgen test.

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Update pkg/pwgen/cryptic_test.go

Co-authored-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
Signed-off-by: Dominik Schulz <dominik.schulz@gmail.com>

* Format

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

---------

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Signed-off-by: Dominik Schulz <dominik.schulz@gmail.com>
Co-authored-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
2024-02-24 08:48:54 +01:00
Dominik Schulz
29bc481fef
[chore] Update grype workflow and pin Docker base images (#2706)
* [chore] Update grype workflow

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

* Pin Docker base images by hash

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

---------

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2023-11-19 18:51:52 +01:00
Yolan Romailler
d56639fcd7
[CLEANUP] Migration of options to more appropriate sections (#2681)
* [CLEANUP] Moving options to the correct config section

This adds an easy migration path to our config handling, which should
allow us to migrate option names around much more easily in the future.

Any system level config or env variables options are not migrated.

This also fixes a bug in our test code, where the root mount path was
not properly set in our config, because we used "path:" instead of
"path=" to set it.

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [DOCUMENTATION] Document legacy options and their migration path

This also makes sure that legacy options aren't used in the code anymore using the docs test and its regexp

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [n/a] Removing weird spaces from changelog

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [DOCUMENTATION] Reformatting our Markdown tables properly

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [TESTING] Patching a timezone bug in tests

This is a fun one where if your Timezone isn't UTC and you are past midnight but it's not past midnight UTC, the tests would fail because you're not using the right date to validate it.

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [n/a] Fix a typo and use the correct Env variables in the doc about the custom Env variables

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [BREAKING] Custom Env options moved from GOPASS_CONFIG_CONFIG_KEY_i to GOPASS_CONFIG_KEY_i

As discussed in #2617, this actually reflects the way GIT_CONFIG works.

It also fixes a potential Panic in our codebase when IsSet was called
without any Preset config on a non-existing key.

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [CLEANUP] Patching all of the new linter complaints

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [CLEANUP] Use Go1.21 everywhere

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [n/a] Increase our Golangci timeout

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

* [n/a] code review comment and extra regression test

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>

---------

Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
2023-11-03 18:40:58 +01:00
Dominik Schulz
ff7e99e7b5 Bump Docker versions
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2023-07-30 20:31:41 +02:00
Dominik Schulz
2a94f49ec9
Include integrations into the dockerfile (#2353)
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2022-09-27 21:03:47 +02:00
Dominik Schulz
ffaa9e3729
Document reproducible builds (#1809)
Fixes #1808

RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-12-22 20:10:59 +01:00
Dominik Schulz
8021dc3f0e
Remove deprecated documentation and build targets (#1309)
RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2020-05-01 12:39:25 +02:00
HappyTobi
08ad0db106 Update Docker image to Go 1.12 (#1186)
Signed-off-by: HappyTobi <happytobi@tscoding.de>
2019-10-20 21:40:47 +02:00
Cornelius Weig
4458062c3c Disable CGO to work around alpine/musl restrictions (#1063) (#1064)
https://github.com/mattes/migrate/issues/241 describes a very similar issue. One solution is to disable the C language binding (see also https://golang.org/cmd/cgo/).
Signed-off-by: Cornelius Weig <cornelius.weig@tngtech.com>
2019-02-10 21:43:57 +01:00
Andrey Arapov
a571f97b98 Enhance Dockerfile (#869)
- Dockerfile can build gopass
- Reduce gopass Docker image by ~588MiB using multi-stage builds

Fixes #867

Signed-off-by: Andrey Arapov <andrey.arapov@nixaid.com>
2018-06-12 15:36:23 +02:00
Christian Muehlhaeuser
5975340630 Replace github.com/justwatchcom with github.com/gopasspw across all sources & docs (#806) 2018-05-29 08:28:50 +02:00
Dominik Schulz
5e11e189bc Update Dockerfile to use Go 1.10 2018-02-23 22:09:05 +01:00
Dominik Schulz
5ce1782cd6
Update Dockerfile and Docs (#605) 2018-01-04 21:30:01 +01:00
Dominik Schulz
01edf0ff48
Add Dockerfile (#561) 2017-12-24 22:48:55 +01:00