Skip to content

fix(build): add local mock for AIX clipboard to fix cross-compile and gosec errors - #2

Merged
xvlet merged 1 commit into
masterfrom
fix/build/cross-compile
Jul 30, 2026
Merged

fix(build): add local mock for AIX clipboard to fix cross-compile and gosec errors#2
xvlet merged 1 commit into
masterfrom
fix/build/cross-compile

Conversation

@xvlet

@xvlet xvlet commented Jul 30, 2026

Copy link
Copy Markdown
Owner
  • Build: Added a local replace directive in go.mod to point github.com/atotto/clipboard to ./internal/clipboard.
  • Core: Created a local fork of the clipboard module to enable cross-compilation for AIX. Added aix to the // +build tags in clipboard_unix.go, allowing it to compile and fallback gracefully to Unsupported mode.
  • Security: Suppressed false positive G204 (Subprocess launched with potential tainted input) gosec warnings for internally hardcoded exec.Command calls in clipboard_unix.go using #nosec G204.
  • Scripts: Retained executable permissions on AMQP and STOMP helper scripts in the scratch directory.

… gosec errors

- Build: Added a local replace directive in go.mod to point github.com/atotto/clipboard to ./internal/clipboard.
- Core: Created a local fork of the clipboard module to enable cross-compilation for AIX. Added `aix` to the `// +build` tags in clipboard_unix.go, allowing it to compile and fallback gracefully to Unsupported mode.
- Security: Suppressed false positive G204 (Subprocess launched with potential tainted input) gosec warnings for internally hardcoded exec.Command calls in clipboard_unix.go using `#nosec G204`.
- Scripts: Retained executable permissions on AMQP and STOMP helper scripts in the scratch directory.
@xvlet xvlet added the bug Something isn't working label Jul 30, 2026
@xvlet
xvlet merged commit c479ec0 into master Jul 30, 2026
1 check passed
@xvlet
xvlet deleted the fix/build/cross-compile branch July 30, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant