Commit graph

10 commits

Author SHA1 Message Date
Viktor Torstensson
46449aa835
sqlcmig6: add sqlcmig6 package
This commit introduces the `sqlcmig6` package, which at the time of this
commit contains the same queries and models as `sqlc` package.
Importantly though, once the kvdb to sql migration is made available in
production, the `sqlcmig6` package will not change, as it is intended
to represent the sql db as it was at the time of the migration.

The sqlcmig6 package is therefore intended to be used in the kvdb to sql
migration code, as it is will always be compatible with the sql database
when all sql migrations prior to the kvdb to sql migration are applied.

When additional sql migrations are added in the future, they may effect
the `sqlc` package in such a way that the standard `sqlc` queries and
models aren't compatible with kvdb to sql migration code any longer.

By preserving the `sqlcmig6` package, we ensure that the kvdb to sql
migration code can always use the same queries and models that were
available at the time of the migration, even if the `sqlc` package
changes in the future.

Note that the `sqlcmig6` package have not been generated by `sqlc` (the
queries and models are copied from the `sqlc` package), as it is not
intended to be changed in the future.
2026-05-14 11:37:55 +02:00
ffranr
e96424cc4a
makefile+tools: add custom 'll' linter for extended line length checks
- Replace the default `lll` with a custom `ll` linter, enabling
  configurable exclusions for specific `S` log lines.
- Integrate custom `ll` linter into the build system and `Makefile`.
- Include relevant test cases and configuration for `golangci-lint`.
2025-12-09 16:12:03 +00:00
Oliver Gugger
9787fa1649
lint: bump timeout to 10 minutes 2025-10-14 11:38:41 +02:00
Elle Mouton
4e786a4eb7
tools+golangci: update linter
Bump the tools packge golang version along with the linter version.
Adjust the linter config file accordingly.
2025-03-15 11:37:22 -05:00
Elle Mouton
6c82db3fb3
multi: go version bump to 1.23.6
We update the go version in our go.mod, for our linter,
GH workflows and makefile.
2025-03-15 11:37:15 -05:00
Elle Mouton
7a091fc773
config: introduce the concept of DevConfig
In this commit, we introduce a DevConfig struct which is embedded in the
main lit Config struct. It is defined in two separate files that are
made mutually exclusive using the `dev` build tag. The idea of this
struct is that it allows us to expose additional config options to LiT
if we build in a development environment such as our itests. In other
words, we will be able to start developing features and testing them
before making them available to users via the production build.

As of this commit, both implementations of the struct are the same.
2025-02-21 11:17:21 -03:00
Elle Mouton
a22689ce16
golangci: enable line length linter 2025-02-13 15:50:48 +02:00
Oliver Gugger
65144f2c97
GitHub+docker: update to Go 1.22.6 2024-10-23 11:50:41 +02:00
bitromortac
f030c28d68
tools: update linter to latest version
Fixes the timeout keyword.

Also enable speedups by mounting go caches as well as a golangci-lint
cache that caches linter data accross runs.
2024-04-25 14:49:36 +02:00
Oliver Gugger
843a3fc86a
multi: dockerize tools 2022-10-19 10:57:18 +02:00