Skip to content

feat: Go 1.17 compatibility via build tags#2

Merged
M09Ic merged 4 commits into
masterfrom
feat/go117-compat
Jun 10, 2026
Merged

feat: Go 1.17 compatibility via build tags#2
M09Ic merged 4 commits into
masterfrom
feat/go117-compat

Conversation

@M09Ic

@M09Ic M09Ic commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Split version-sensitive code into compat_modern.go (go1.18+) and compat_legacy.go (!go1.18) via build tags
  • Go 1.17: stdlib regexp + filepath.WalkDir + archiver v3
  • Go 1.18+: go-re2 + fastwalk + mholt/archives
  • CI: parallel Go 1.17 + Go 1.24 test jobs

Test plan

  • Go 1.24 build + test pass locally
  • Go 1.17 build + test pass locally (55 test cases)
  • CI Go 1.24 job passes
  • CI Go 1.17 job passes

🤖 Generated with Claude Code

M09Ic and others added 4 commits June 10, 2026 02:47
Split version-sensitive code into compat_modern.go (go1.18+) and
compat_legacy.go (!go1.18) to support Go 1.17 compilation of the
proton/file library without affecting modern builds.

- fastwalk → filepath.WalkDir fallback
- wasilibs/go-re2 → stdlib regexp fallback
- mholt/archives → mholt/archiver v3 fallback
- CI: add parallel Go 1.17 + Go 1.24 test jobs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Go 1.17 does not support the -toolchain flag in go mod edit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
templates/extract/credential/ does not exist in the templates submodule.
The correct path is templates/proton_rules/credential/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@M09Ic M09Ic merged commit 36f3a24 into master Jun 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant