Comments (4)
Could you share the results of pip freeze
in the environment you've built? I wasn't able to reproduce this.
My test environment was Linux x86_64 with py 3.11 and
$ pip freeze
attrs==23.1.0
certifi==2023.11.17
charset-normalizer==3.3.2
check-jsonschema==0.27.3
click==8.1.7
idna==3.6
jsonschema==4.20.0
jsonschema-specifications==2023.11.2
referencing==0.31.1
regress==0.4.2
requests==2.31.0
rpds-py==0.13.2
ruamel.yaml==0.18.5
ruamel.yaml.clib==0.2.8
urllib3==2.1.0
So this seems to me like a case of some kind of unusual broken environment build.
I notice that the error report says 0.27.1 and 0.27.3, but the error text refers to 0.25.0 . Is that just a discrepancy between various tested versions, or is it a potential indicator that you aren't running the version you intend to run?
from check-jsonschema.
Could you share the results of pip freeze in the environment you've built?
No, because Nix doesn't use pip, building everything from source.
I notice that the error report says 0.27.1 and 0.27.3, but the error text refers to 0.25.0 . Is that just a discrepancy between various tested versions, or is it a potential indicator that you aren't running the version you intend to run?
😮 You're right! Turns out I had forgotten about direnv installing check-jsonschema
when cd
-ing into the project directory, and even if I was running /path/to/nixpkgs/result/bin/check-jsonschema
it used the site-packages from direnv in the emergency-management-tools repo.
from check-jsonschema.
Glad you worked it out!
Could you share the results of pip freeze in the environment you've built?
No, because Nix doesn't use pip, building everything from source.
Just for my own edification, is there some equivalent I should ask for when interacting with Nix users? In such cases, I really just want a list of installed packages and their versions. A listing on site-packages would probably work... Is there a site-packages dir?
from check-jsonschema.
Could you share the results of pip freeze in the environment you've built?
No, because Nix doesn't use pip, building everything from source.
Just for my own edification, is there some equivalent I should ask for when interacting with Nix users? In such cases, I really just want a list of installed packages and their versions. A listing on site-packages would probably work... Is there a site-packages dir?
Actually, I'm wrong. I just have to install pip in the environment (it's not necessary in Nix environments in general), then it does have insight into which packages have been built:
❯ pip freeze
aiodns @ file:///tmp/nix-build-python3.10-aiodns-3.0.0.drv-0/source/dist/aiodns-3.0.0-py3-none-any.whl
aiohttp @ file:///tmp/nix-build-python3.10-aiohttp-3.8.5.drv-0/aiohttp-3.8.5/dist/aiohttp-3.8.5-cp310-cp310-linux_x86_64.whl
[…]
from check-jsonschema.
Related Issues (20)
- Distribute the check-jsonschema tool in a manner which does not assume a Python environment
- Validation passes for misspelled optional child properties in Google Cloud Build schema HOT 7
- check-gitlab-ci: coverage is not a regex HOT 9
- Check yaml with check-metaschema option HOT 3
- Non-JSON files ignored despite --default-type being set HOT 4
- check-azure-pipelines: doesn't handle default value for boolean parameter properly HOT 2
- --schemafile from $schema HOT 1
- Cannot download schema using check-jsonschema HOT 3
- `src/check_jsonschema/builtin_schemas/vendor` file organization HOT 2
- Addition of CircleCI hook? HOT 1
- Release schemas update? HOT 2
- [BUG] RegEx not recognised HOT 5
- GitLab CI .artifacts.reports.annotations is not supported HOT 4
- bitbucket schema weirdness HOT 2
- OpenAPI format, `required` plus `minimum`/`maximum` fields HOT 1
- Fail to validate Renovate.json file HOT 2
- Design a solution for caching downloads of `$refs` in order to improve performance in cases with many remote refs
- Remote file caching improvement is destroyed by use of parse as a validation callback HOT 1
- New validator instances are built for each instancefile, discarding any internal caching HOT 5
- --check-metaschema doesn't check $ref referenced schemas HOT 2
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 check-jsonschema.