this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

only depend on scylla in bigsky build

+14 -18
+2
carstore/scylla.go
··· 1 + //go:build scylla 2 + 1 3 package carstore 2 4 3 5 import (
+9
carstore/scylla_stub.go
··· 1 + //go:build !scylla 2 + 3 + package carstore 4 + 5 + import "errors" 6 + 7 + func NewScyllaStore(addrs []string, keyspace string) (CarStore, error) { 8 + return nil, errors.New("scylla compiled out") 9 + }
+3 -1
cmd/bigsky/Dockerfile
··· 12 12 # timezone data for alpine builds 13 13 ENV GOEXPERIMENT=loopvar 14 14 RUN GIT_VERSION=$(git describe --tags --long --always) && \ 15 - go build -tags timetzdata -o /bigsky ./cmd/bigsky 15 + echo "replace github.com/gocql/gocql => github.com/scylladb/gocql v1.14.4" >> go.mod && \ 16 + go mod tidy && \ 17 + go build -tags timetzdata,scylla -o /bigsky ./cmd/bigsky 16 18 17 19 ### Build Frontend stage 18 20 FROM node:18-alpine as web-builder
-3
go.mod
··· 16 16 github.com/flosch/pongo2/v6 v6.0.0 17 17 github.com/go-redis/cache/v9 v9.0.0 18 18 github.com/goccy/go-json v0.10.2 19 - github.com/gocql/gocql v0.0.0-00010101000000-000000000000 20 19 github.com/golang-jwt/jwt v3.2.2+incompatible 21 20 github.com/gorilla/websocket v1.5.1 22 21 github.com/hashicorp/go-retryablehttp v0.7.5 ··· 191 190 gopkg.in/yaml.v3 v3.0.1 // indirect 192 191 lukechampine.com/blake3 v1.2.1 // indirect 193 192 ) 194 - 195 - replace github.com/gocql/gocql => github.com/scylladb/gocql v1.14.4
-14
models/dbcid.go
··· 4 4 "database/sql/driver" 5 5 "encoding/json" 6 6 "fmt" 7 - "github.com/gocql/gocql" 8 - 9 7 "github.com/ipfs/go-cid" 10 8 ) 11 9 ··· 63 61 func (dbc *DbCID) GormDataType() string { 64 62 return "bytes" 65 63 } 66 - 67 - func (dbc *DbCID) MarshalCQL(info gocql.TypeInfo) ([]byte, error) { 68 - return dbc.CID.Bytes(), nil 69 - } 70 - func (dbc *DbCID) UnmarshalCQL(info gocql.TypeInfo, data []byte) error { 71 - xcid, err := cid.Cast(data) 72 - if err != nil { 73 - return err 74 - } 75 - dbc.CID = xcid 76 - return nil 77 - }