apache / apache/maven-gpg-plugin

GPG Path broken on GitHub Actions, resulting in builds fail

Open
#322 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
31
Forks
27
Avg merge
4h 44m
Merged PRs (30d)
4

Description

### Affected version

current master

### Bug description

Raised from #321 (but it fails since months, see other PRs)

GPG-Path on Github Action is broken, making builds fail

> we have in params: `--homedir D:\a\maven-gpg-plugin\maven-gpg-plugin\target\test-classes\gnupg` but in log is

```
gpg: keyblock resource '/d/a/maven-gpg-plugin/maven-gpg-plugin/target/it/no-main-artifact/D:\\a\\maven-gpg-plugin\\maven-gpg-plugin\\target\\test-classes\\gnupg/pubring.kbx': No such file or directory
```

```
[DEBUG] GPG Version: 2.4.9
[DEBUG] CMD: cmd.exe /X /C "gpg.exe --homedir D:\a\maven-gpg-plugin\maven-gpg-plugin\target\test-classes\gnupg --batch --pinentry-mode loopback --passphrase-fd 0 --armor --detach-sign --status-fd 1 --batch --no-tty --output D:\a\maven-gpg-plugin\maven-gpg-plugin\target\it\sign-with-passphase-from-maven-settings\target\test-1.0.pom.asc D:\a\maven-gpg-plugin\maven-gpg-plugin\target\it\sign-with-passphase-from-maven-settings\target\test-1.0.pom"
[GNUPG:] ERROR add_keyblock_resource 33587281
gpg: keyblock resource '/d/a/maven-gpg-plugin/maven-gpg-plugin/target/it/sign-with-passphase-from-maven-settings/D:\\a\\maven-gpg-plugin\\maven-gpg-plugin\\target\\test-classes\\gnupg/pubring.kbx': No such file or directory
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the GPG signing integration-test failure on GitHub Actions using the current master and the logged gpg command. Trace how the Windows --homedir path is passed to gpg.exe; done means the path is not prefixed or concatenated incorrectly and the affected builds pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.