Skip to content

Commit

Permalink
Housekeeping (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdigital authored Jan 8, 2025
1 parent b98f183 commit 1d0034c
Show file tree
Hide file tree
Showing 27 changed files with 768 additions and 845 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
args: --timeout=10m

test:
runs-on: ubuntu-latest
# The Ubuntu image has been downgraded and pinned for the `test` and `generated` jobs as they are broken on 24.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -46,7 +47,7 @@ jobs:
# This job runs all code generations and builds the WebUI, to check that everything is correctly committed
generated:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
services:
# Label used to access the service container
postgres:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
matrix:
language:
- "go"
# - 'javascript-typescript'
- "javascript-typescript"
- "ruby"
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
Expand Down
2 changes: 2 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ tasks:
dir: ./webui
cmds:
- npm test
env:
CHROME_BIN: chromium

migrate:
cmds:
Expand Down
14 changes: 7 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
description = "bitmagnet dev shell";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = {
Expand All @@ -9,22 +9,27 @@
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs {
system = system;
};
in {
formatter = pkgs.alejandra;
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
bundler
go_1_23
go
go-task
golangci-lint
jekyll
nodejs_22
nodePackages.prettier
protobuf
protoc-gen-go
];
ruby
] ++ (if stdenv.isLinux then [
chromium
] else []);
};
};
});
Expand Down
81 changes: 41 additions & 40 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,63 +1,64 @@
module github.com/bitmagnet-io/bitmagnet

go 1.23
go 1.23.3

require (
github.com/99designs/gqlgen v0.17.55
github.com/99designs/gqlgen v0.17.63
github.com/DATA-DOG/go-sqlmock v1.5.2
github.com/abice/go-enum v0.6.0
github.com/adrg/xdg v0.5.0
github.com/adrg/xdg v0.5.3
github.com/agnivade/levenshtein v1.2.0
github.com/anacrolix/dht/v2 v2.22.0
github.com/anacrolix/missinggo/v2 v2.8.0
github.com/anacrolix/torrent v1.57.1
github.com/anacrolix/torrent v1.58.0
github.com/bits-and-blooms/bloom/v3 v3.7.0
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb
github.com/frankban/quicktest v1.14.6
github.com/gin-gonic/gin v1.10.0
github.com/go-playground/validator/v10 v10.22.1
github.com/go-resty/resty/v2 v2.15.3
github.com/google/cel-go v0.21.0
github.com/go-playground/validator/v10 v10.23.0
github.com/go-resty/resty/v2 v2.16.2
github.com/google/cel-go v0.22.1
github.com/grafana/pyroscope-go/godeltaprof v0.1.8
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/hedhyw/rex v1.0.0
github.com/iancoleman/strcase v0.3.0
github.com/jackc/pgx/v5 v5.7.1
github.com/jedib0t/go-pretty/v6 v6.6.0
github.com/jackc/pgx/v5 v5.7.2
github.com/jedib0t/go-pretty/v6 v6.6.5
github.com/joho/godotenv v1.5.1
github.com/mgdigital/gorm-cache/v2 v2.0.0-20230912113927-f2a8dd92a386
github.com/mitchellh/mapstructure v1.5.0
github.com/mozillazg/go-unidecode v0.2.0
github.com/pressly/goose/v3 v3.22.1
github.com/prometheus/client_golang v1.20.4
github.com/pressly/goose/v3 v3.24.1
github.com/prometheus/client_golang v1.20.5
github.com/rs/cors v1.11.1
github.com/rs/cors/wrapper/gin v0.0.0-20240830163046-1084d89a1692
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
github.com/tylertreat/BoomFilters v0.0.0-20210315201527-1a82519a3e43
github.com/urfave/cli/v2 v2.27.5
github.com/vektah/gqlparser/v2 v2.5.17
github.com/vektra/mockery/v2 v2.46.3
github.com/vektah/gqlparser/v2 v2.5.21
github.com/vektra/mockery/v2 v2.50.4
github.com/xeipuuv/gojsonschema v1.2.0
go.uber.org/fx v1.23.0
go.uber.org/zap v1.27.0
golang.org/x/sync v0.8.0
golang.org/x/sys v0.26.0
golang.org/x/text v0.19.0
golang.org/x/time v0.7.0
google.golang.org/protobuf v1.35.1
golang.org/x/sync v0.10.0
golang.org/x/sys v0.29.0
golang.org/x/text v0.21.0
golang.org/x/time v0.9.0
google.golang.org/protobuf v1.36.2
gopkg.in/yaml.v3 v3.0.1
gorm.io/driver/mysql v1.5.7
gorm.io/driver/postgres v1.5.9
gorm.io/driver/postgres v1.5.11
gorm.io/gen v0.3.26
gorm.io/gorm v1.25.12
gorm.io/plugin/dbresolver v1.5.3
)

require (
cel.dev/expr v0.19.1 // indirect
dario.cat/mergo v1.0.1 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.3.0 // indirect
github.com/Masterminds/semver/v3 v3.3.1 // indirect
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
github.com/alecthomas/atomic v0.1.0-alpha2 // indirect
github.com/anacrolix/chansync v0.6.0 // indirect
Expand All @@ -71,25 +72,26 @@ require (
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
github.com/benbjohnson/immutable v0.4.3 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.14.3 // indirect
github.com/bits-and-blooms/bitset v1.20.0 // indirect
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect
github.com/bytedance/sonic v1.12.3 // indirect
github.com/bytedance/sonic/loader v0.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chigopher/pathlib v0.19.1 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
github.com/d4l3k/messagediff v1.2.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/edsrzf/mmap-go v1.2.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.6 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-sql-driver/mysql v1.8.1 // indirect
github.com/goccy/go-json v0.10.3 // indirect
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
github.com/goccy/go-json v0.10.4 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect
Expand All @@ -105,12 +107,12 @@ require (
github.com/jinzhu/now v1.1.5 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/labstack/gommon v0.4.2 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/magiconair/properties v1.8.9 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
Expand All @@ -130,7 +132,7 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.60.0 // indirect
github.com/prometheus/common v0.61.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
Expand All @@ -145,7 +147,7 @@ require (
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/cobra v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.19.0 // indirect
Expand All @@ -159,19 +161,18 @@ require (
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
go.uber.org/dig v1.18.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/arch v0.11.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/term v0.25.0 // indirect
golang.org/x/tools v0.26.0 // indirect
golang.org/x/arch v0.13.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/term v0.28.0 // indirect
golang.org/x/tools v0.29.0 // indirect
golang.org/x/tools/cmd/cover v0.1.0-deprecated // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gorm.io/datatypes v1.2.3 // indirect
gorm.io/datatypes v1.2.5 // indirect
gorm.io/hints v1.1.2 // indirect
lukechampine.com/blake3 v1.3.0 // indirect
)
Loading

0 comments on commit 1d0034c

Please sign in to comment.