~wombelix/sourcehut-go

docs(LICENSE): workaround for pkg.go.dev visibility

Copy of primary license in project root created to address error 'Documentation not displayed due to license restrictions.' when using pkg.go.dev. It's caused by missing support for 'LICENSE/' sub-folder and Reuse structure.

Required till appropriate fix in https://github.com/golang/pkgsite

Refs: https://github.com/golang/go/issues/40586

Refs: https://github.com/google/licensecheck/issues/53
bump: version 0.0.1 → 0.1.0
docs: License file for upcoming Changelog added
build: Add commitizen config
docs(README): Changed license to CC0-1.0
build(go): Bump go dependencies
build: add make command to bump go dependencies
feat: logging and hint about oauth token

Currently sourcehut-go only supports 'oauth' personal access tokens and the legacy REST API. Oauth2 tokens only work with the new GraphQL API.
fix: SA1019: 'io/ioutil' has been deprecated

golangci-lint finding in cmd/srht/paste.go:12:2
fix: ineffectual assignment to parts (ineffassign)

golangci-lint finding in cmd/srht/lists.go:113:4
refactor: drop second go module cmd/srht

Project structure and makefile changed to use one go module at the root level only
fix: G306 (CWE-276) Expect WriteFile permissions to be 0600 or less

gosec finding in cmd/srht/paste.go:207
fix: G304 (CWE-22) Potential file inclusion via variable

gosec finding in cmd/srht/paste.go:174
build: Use go from tar, enable lint and gosec

Build aligned with https://git.sr.ht/~wombelix/terraform-provider-sourcehut

Using go installed from tar archive instead of debian package to have access to more recent versions. Lint test now uses golangci-lint binary. Gosec uses latest binary instead of building on every run.
build: tests added to makefile

test-cmd = test the cmd/srht package

test-testlog = test the internal/testlog package

test-sourcehut = test the library in the project root

test = Run all tests
fix(cmd): Compile err because of missing 'env.todo'
build(go): Version bump to 1.23
build: cmd/srht - go.mod updated
build(pre-commit): Initial config version added
fix: Adjust go imports to new repo
Next