Comments (4)
Starting in v1 junit is an optional dependency.
You can install it using pip install cfn-lint[junit]
from cfn-lint.
That produces error:
$ pip install cfn-lint[junit]
bash: pip: command not found
$ pip3 install cfn-lint[junit]
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.
If you wish to install a Python library that isn't in Homebrew,
use a virtual environment:
python3 -m venv path/to/venv
source path/to/venv/bin/activate
python3 -m pip install xyz
If you wish to install a Python application that isn't in Homebrew,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. You can install pipx with
brew install pipx
You may restore the old behavior of pip by passing
the '--break-system-packages' flag to pip, or by adding
'break-system-packages = true' to your pip.conf file. The latter
will permanently disable this error.
If you disable this error, we STRONGLY recommend that you additionally
pass the '--user' flag to pip, or set 'user = true' in your pip.conf
file. Failure to do this can result in a broken Homebrew installation.
Read more about this behavior here: <https://peps.python.org/pep-0668/>
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
from cfn-lint.
I had to use the Python binary within the Homebrew package to install this:
/opt/homebrew/Cellar/cfn-lint/1.3.4/libexec/bin/python -m pip install cfn-lint[junit]
A more generic version for the benefit of other people:
"$(brew --cellar cfn-lint)/$(cfn-lint --version | cut -d' ' -f2)/libexec/bin/python" -m pip install cfn-lint[junit]
I'm doubtful that this will persist through Homebrew upgrading the cfn-lint package. Not ideal 😕
from cfn-lint.
Confirmed that the optional dependency is not persisted through upgrade of Homebrew cfn-lint package.
from cfn-lint.
Related Issues (20)
- Instead of deprecation warning, have an option to recieve an informational message.
- Exception thrown when assertions used HOT 2
- Function aware schema validation rules
- AWS::Cloud9::EnvironmentEC2 validation logic for ImageId does not align with CloudFormation documentation
- `Fn::ForEach:` does not match type {Array} HOT 2
- I1022 raised when converting List<String> to String via Fn::Join HOT 2
- API Gateway Lambda authorizer URI incorrectly fails I3042:accountId check HOT 1
- AWS::Events::Rule should allow both ['EventPattern', 'ScheduleExpression'] and should not throw an E3014 HOT 1
- E3693 - PerformanceInsightsEnabled not recognised as valid attribute for DB Cluster HOT 4
- E3601: Step Functions arn:aws:states:::aws-sdk:ssm:startAutomationExecution.waitForTaskToken does not match regex
- [cfn-lint] E3640: {'Fn::If': ['HasKmsKey', 'KMS', {'Ref': 'AWS::NoValue'}]} is not one of ['KMS']
- `E3601` - False-positive for AWS::StepFunctions::StateMachine `StringMatches` HOT 1
- [Potential Issue] E1051 Dynamic reference to secret in Parameters section
- [Bug] Rules support `Condition`, which is not a rule-specific intrinsic function HOT 2
- E8005 - False positive in Rules section, thinks !Contains is not returning a boolean
- Nested stack API Gateway Lambda authorizer URI parameter incorrectly fails I3042:accountId check
- Non-determinstic poor performance with nested If conditions HOT 5
- Validate parameters when using Fn::Transform
- From Cloudformation documentation, tags should be expressed as arrays of Key/Value HOT 4
- [Feature] Stack deployment file validation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfn-lint.