Skip to content

Commit

Permalink
Merge pull request #79478 from stefano-m/aws-sam-cli-no-telemetry
Browse files Browse the repository at this point in the history
aws-sam-cli: disable telemetry
  • Loading branch information
rnhmjoj committed Feb 12, 2020
2 parents 3e7ce1e + 2b4794f commit c6ec7b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/tools/aws-sam-cli/default.nix
@@ -1,5 +1,6 @@
{ lib
, python
, enableTelemetry ? false
}:

let
Expand Down Expand Up @@ -56,6 +57,11 @@ buildPythonApplication rec {
tomlkit
];

postFixup = if enableTelemetry then "echo aws-sam-cli TELEMETRY IS ENABLED" else ''
# Disable telemetry: https://github.com/awslabs/aws-sam-cli/issues/1272
wrapProgram $out/bin/sam --set SAM_CLI_TELEMETRY 0
'';

# fix over-restrictive version bounds
postPatch = ''
substituteInPlace requirements/base.txt \
Expand Down

0 comments on commit c6ec7b6

Please sign in to comment.