Merge pull request #79478 from stefano-m/aws-sam-cli-no-telemetry
aws-sam-cli: disable telemetry
This commit is contained in:
commit
c6ec7b613a
|
@ -1,5 +1,6 @@
|
|||
{ lib
|
||||
, python
|
||||
, enableTelemetry ? false
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue