build/ci: Update Go to v1.24, golangci-lint to v1.64.6 and fix issues (#1804)

* build/ci: Update Go to v1.24, golangci-lint to v1.64.5 and fix issues

* Address shazbert's nitters

* linter/config: Fix new linter issue and use versionSize const

* Address gk's nitters and fix additional linter issue after rebase

* Address glorious nits

* staticcheck: Fix additional linter issues after upgrading to Go 1.24.1 and golangci-lint v1.64.6

Also addresses nits

* Improve testing, assertify usage and use common.ErrParsingWSField

* TestCreateNewStrategy: Replace must > should wording
This commit is contained in:
Adrian Gallagher
2025-03-10 16:33:55 +11:00
committed by GitHub
parent c086e281cf
commit d64d56f77c
114 changed files with 5080 additions and 9355 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -571,7 +571,7 @@ message WithdrawalRequestEvent {
string currency = 2;
string description = 3;
double amount = 4;
int32 type = 5;
int64 type = 5;
FiatWithdrawalEvent fiat = 6;
CryptoWithdrawalEvent crypto = 7;
}
@@ -892,15 +892,15 @@ message UpsertDataHistoryJobRequest {
string start_date = 5;
string end_date = 6;
int64 interval = 7;
int64 request_size_limit = 8;
uint64 request_size_limit = 8;
int64 data_type = 9;
int64 max_retry_attempts = 10;
int64 batch_size = 11;
uint64 max_retry_attempts = 10;
uint64 batch_size = 11;
bool insert_only = 12;
int64 conversion_interval = 13;
bool overwrite_existing_data = 14;
string prerequisite_job_nickname = 15;
int64 decimal_place_comparison = 16;
uint64 decimal_place_comparison = 16;
string secondary_exchange_name = 17;
double issue_tolerance_percentage = 18;
bool replace_on_issue = 19;
@@ -934,15 +934,15 @@ message DataHistoryJob {
string start_date = 6;
string end_date = 7;
int64 interval = 8;
int64 request_size_limit = 9;
int64 max_retry_attempts = 10;
int64 batch_size = 11;
uint64 request_size_limit = 9;
uint64 max_retry_attempts = 10;
uint64 batch_size = 11;
string status = 12;
string data_type = 13;
int64 conversion_interval = 14;
bool overwrite_existing_data = 15;
string prerequisite_job_nickname = 16;
int64 decimal_place_comparison = 17;
uint64 decimal_place_comparison = 17;
string secondary_exchange_name = 18;
double issue_tolerance_percentage = 19;
bool replace_on_issue = 20;

View File

@@ -4784,7 +4784,6 @@
"currencies": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcAccountCurrencyInfo"
}
}
@@ -4916,7 +4915,6 @@
"orders": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrders"
}
},
@@ -4958,7 +4956,6 @@
"orders": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrders"
}
}
@@ -5282,7 +5279,6 @@
"currencyStates": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcCurrencyState"
}
}
@@ -5318,15 +5314,15 @@
},
"requestSizeLimit": {
"type": "string",
"format": "int64"
"format": "uint64"
},
"maxRetryAttempts": {
"type": "string",
"format": "int64"
"format": "uint64"
},
"batchSize": {
"type": "string",
"format": "int64"
"format": "uint64"
},
"status": {
"type": "string"
@@ -5346,7 +5342,7 @@
},
"decimalPlaceComparison": {
"type": "string",
"format": "int64"
"format": "uint64"
},
"secondaryExchangeName": {
"type": "string"
@@ -5361,7 +5357,6 @@
"jobResults": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcDataHistoryJobResult"
}
},
@@ -5399,7 +5394,6 @@
"results": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcDataHistoryJob"
}
}
@@ -5425,7 +5419,6 @@
"addresses": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcDepositAddress"
}
}
@@ -5547,7 +5540,6 @@
"rates": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcFundingRate"
}
},
@@ -5637,7 +5629,6 @@
"orders": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrderDetails"
}
},
@@ -5797,7 +5788,6 @@
"scripts": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcGCTScript"
}
}
@@ -5863,7 +5853,6 @@
"accounts": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcAccount"
}
}
@@ -5875,7 +5864,6 @@
"events": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcAuditEvent"
}
}
@@ -5950,14 +5938,12 @@
"currencyBreakdown": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcCollateralForCurrency"
}
},
"positionBreakdown": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcCollateralByPosition"
}
}
@@ -6166,7 +6152,6 @@
"forexProviders": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcForexProvider"
}
}
@@ -6178,7 +6163,6 @@
"forexRates": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcForexRatesConversion"
}
}
@@ -6198,7 +6182,6 @@
"positions": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcFuturePosition"
}
}
@@ -6242,7 +6225,6 @@
"candle": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcCandle"
}
}
@@ -6340,7 +6322,6 @@
"positions": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcFuturePosition"
}
}
@@ -6352,7 +6333,6 @@
"rates": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcMarginRate"
}
},
@@ -6389,7 +6369,6 @@
"data": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOpenInterestDataResponse"
}
}
@@ -6575,7 +6554,6 @@
"orderbooks": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrderbooks"
}
}
@@ -6607,7 +6585,6 @@
"orders": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrderDetails"
}
}
@@ -6619,7 +6596,6 @@
"portfolio": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcPortfolioAddress"
}
}
@@ -6631,14 +6607,12 @@
"coinTotals": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcCoin"
}
},
"coinsOffline": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcCoin"
}
},
@@ -6651,7 +6625,6 @@
"coinsOnline": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcCoin"
}
},
@@ -6716,7 +6689,6 @@
"tickers": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcTickers"
}
}
@@ -6804,7 +6776,6 @@
"addresses": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOfflineCoinSummary"
}
}
@@ -6922,7 +6893,6 @@
"trades": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcTradeHistory"
}
},
@@ -6961,14 +6931,12 @@
"bids": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrderbookItem"
}
},
"asks": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrderbookItem"
}
},
@@ -6993,7 +6961,6 @@
"orderbooks": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrderbookResponse"
}
}
@@ -7113,7 +7080,6 @@
"trades": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcSavedTrades"
}
}
@@ -7174,7 +7140,6 @@
"pairs": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcCurrencyPair"
}
},
@@ -7311,7 +7276,6 @@
"orders": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcOrderbookItem"
}
},
@@ -7382,7 +7346,6 @@
"trades": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcTrades"
}
}
@@ -7440,7 +7403,6 @@
"tickers": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcTickerResponse"
}
}
@@ -7541,7 +7503,7 @@
},
"requestSizeLimit": {
"type": "string",
"format": "int64"
"format": "uint64"
},
"dataType": {
"type": "string",
@@ -7549,11 +7511,11 @@
},
"maxRetryAttempts": {
"type": "string",
"format": "int64"
"format": "uint64"
},
"batchSize": {
"type": "string",
"format": "int64"
"format": "uint64"
},
"insertOnly": {
"type": "boolean"
@@ -7570,7 +7532,7 @@
},
"decimalPlaceComparison": {
"type": "string",
"format": "int64"
"format": "uint64"
},
"secondaryExchangeName": {
"type": "string"
@@ -7630,7 +7592,6 @@
"subscriptions": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcWebsocketSubscription"
}
}
@@ -7820,7 +7781,6 @@
"event": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/gctrpcWithdrawalEventResponse"
}
}
@@ -7840,8 +7800,8 @@
"format": "double"
},
"type": {
"type": "integer",
"format": "int32"
"type": "string",
"format": "int64"
},
"fiat": {
"$ref": "#/definitions/gctrpcFiatWithdrawalEvent"
@@ -7887,7 +7847,6 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}

File diff suppressed because it is too large Load Diff