wakatime-cli: 2.2.0 -> 2.3.0 (#510658)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
testers,
|
||||
@@ -10,13 +9,13 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "wakatime-cli";
|
||||
version = "2.2.0";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wakatime";
|
||||
repo = "wakatime-cli";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-TOdAcT+IS6XONIfkASRvd7oTSSW5VX8w5q5ASvJlQb8=";
|
||||
hash = "sha256-t0HKRN7qguE+zhyI3fbBtuhpDAPZrbMS9wa8crQkLhc=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-HngszNLX2b2EVvh8ovouIEvjBOJL1jA5AhA6Y11ke9Y=";
|
||||
@@ -27,23 +26,14 @@ buildGoModule (finalAttrs: {
|
||||
"-X github.com/wakatime/wakatime-cli/pkg/version.Version=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
# dial tcp 127.0.0.1:51272: connect: operation not permitted
|
||||
# and goroutine 33 [IO wait, 10 minutes] on darwin
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
|
||||
|
||||
checkFlags =
|
||||
let
|
||||
skippedTests = [
|
||||
# Tests requiring network
|
||||
"TestFileExperts"
|
||||
"TestSendHeartbeats"
|
||||
"TestSendHeartbeats_ExtraHeartbeats"
|
||||
"TestSendHeartbeats_IsUnsavedEntity"
|
||||
"TestSendHeartbeats_NonExistingExtraHeartbeatsEntity"
|
||||
"TestSendHeartbeats_ExtraHeartbeatsIsUnsavedEntity"
|
||||
"TestFileExperts_Err(Auth|Api|BadRequest)"
|
||||
"TestLoadParams_APIKey_FromVault_Err_Darwin"
|
||||
];
|
||||
in
|
||||
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||
|
||||
Reference in New Issue
Block a user