Commit Graph

29 Commits

Author SHA1 Message Date
Pim van Pelt abc9729e8e Fix golangci-lint errcheck warnings; add make fixstyle
errcheck flagged six unchecked Close() calls. The production write
path in indexgen.ProcessDir now closes the index file explicitly
after Execute and surfaces the close error so a deferred flush
failure isn't lost; tests use _ = f.Close() since they don't care.

Also adds a 'make fixstyle' target that runs gofmt -w over the tree,
matching the convention used elsewhere.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 20:17:10 +02:00
Pim van Pelt 535a121435 Cut release 1.1.0-1
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 20:12:06 +02:00
Pim van Pelt 312e9245f8 Rework build system
Replace the dpkg-buildpackage / debhelper rig with the same pattern
used in vpp-maglev and govpp-snmp-agentx: a Makefile that
cross-compiles CGO-free static binaries for amd64 and arm64, plus a
debian/build-deb.sh that stages the .deb directly with dpkg-deb. The
two arch packages drop into build/ and run on any glibc/musl Linux of
the matching arch.

VERSION is parsed once from debian/changelog and injected at link
time via -ldflags "-X 'main.Version=...' -X 'main.Commit=...' -X
'main.Date=...'", so 's3-genindex -version' is the source of truth
for which build is running. The Version constant in main.go becomes
a var to make this work; the old sync-version make target is gone.

Removes the now-unused debian/{control,rules,install,compat} files
and the matching debhelper artifact entries from .gitignore. build/
is added to .gitignore.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 20:11:55 +02:00
Pim van Pelt 12e91032a1 Only emit *-symlink with -v set v1.0.0-1 2025-12-03 17:55:27 +01:00
Pim van Pelt fc62cd39be Fix make clean; don't build debug package 2025-12-03 17:42:55 +01:00
Pim van Pelt 6d680ea2e8 License under AP2 2025-12-03 17:29:09 +01:00
Pim van Pelt bd0201b6d3 Add Debian package building, add manpage, release v1.0.0 2025-12-03 17:22:33 +01:00
Pim van Pelt 579920bbfc Don't show non-https use, it's not a good practice 2025-12-03 14:13:07 +01:00
Pim van Pelt f1ee4722c2 Add screenshot 2025-12-03 14:10:47 +01:00
Pim van Pelt fa6df14ce7 bugfix: use dirName not the (full) dirPath 2025-12-03 13:19:59 +01:00
Pim van Pelt 7a8e469baa Add backref to https://github.com/glowinthedark/index-html-generator 2025-12-03 12:54:09 +01:00
Pim van Pelt 0b687bf9d9 Make logo 48px 2025-12-03 12:39:37 +01:00
Pim van Pelt 99ad6fbff1 Add logo feature 2025-12-03 12:32:36 +01:00
Pim van Pelt 60a149b669 Refresh README 2025-12-03 12:27:14 +01:00
Pim van Pelt 16fa899b91 Add a -i flag to force showing 'index.html' in the output listing; by default do not show them. 2025-12-03 12:23:40 +01:00
Pim van Pelt 7829000c55 Do not render parent of root directory 2025-12-03 12:16:54 +01:00
Pim van Pelt 11fbbd4b42 Fix s3 file+dir handling 2025-12-03 12:14:13 +01:00
Pim van Pelt 2274372119 Remove index.html files 2025-12-03 00:23:54 +01:00
Pim van Pelt 07c372e6d2 Fix bug: missing fields 2025-12-03 00:22:17 +01:00
Pim van Pelt d1db4d5e68 go fmt 2025-12-03 00:17:43 +01:00
Pim van Pelt 45ee30fae1 Add dryrun flag -n 2025-12-03 00:17:28 +01:00
Pim van Pelt 62db5b2008 make -d and -s3 mutually exclusive 2025-12-03 00:14:15 +01:00
Pim van Pelt 36e5d33c49 Fix bug in .gitignore, add back *.go 2025-12-03 00:10:38 +01:00
Pim van Pelt 28e4e0227a Remove index.html in any dir 2025-12-03 00:07:44 +01:00
Pim van Pelt 7143e95b72 Remove index.html files 2025-12-03 00:05:28 +01:00
Pim van Pelt fcbf4a595c Update mods, remove index.html 2025-12-03 00:03:47 +01:00
Pim van Pelt f8d9841a68 go fmt 2025-12-02 23:50:07 +01:00
Pim van Pelt c53fa96349 Remove --long-flags 2025-12-02 23:49:32 +01:00
Pim van Pelt c3b57c02e3 Initial checkin 2025-12-02 23:47:17 +01:00