Comments (7)
Ah:
# go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest
go: downloading github.com/santhosh-tekuri/jsonschema/cmd/jv v0.3.1
go: downloading github.com/santhosh-tekuri/jsonschema v1.2.4
go: downloading github.com/santhosh-tekuri/jsonschema/v5 v5.1.1
go: downloading gopkg.in/yaml.v2 v2.4.0
Seems like something wasn't bumped correctly. Is the problem that santhosh-tekuri/jsonschema:cmd/jv/go.mod still contains
require (
github.com/santhosh-tekuri/jsonschema/v5 v5.1.1
)
from jsonschema.
yes. you are correct. corrected it.
now you can install it using one of the following commands:
$ go install github.com/santhosh-tekuri/jsonschema/cmd/[email protected]
$ go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest
note: the go.mod version of jv is v0.4.0
where as jsonschema is v5.2.0
both are independent go modules
from jsonschema.
I see, thanks for clarifying and fixing the issue at hand!
go install github.com/santhosh-tekuri/jsonschema/cmd/[email protected]
does indeed work as expected.
That said, if you'll permit a follow-up: since the GitHub Releases use the versions of jsonschema
, how can I configure Renovate/Dependabot so they can determine the current version of jv
?
from jsonschema.
I am not familiar with the tools you mentioned.
I have made GitHub release for jv https://github.com/santhosh-tekuri/jsonschema/releases/tag/cmd%2Fjv%2Fv0.4.0
let me know if that helps
from jsonschema.
may be using gomod
package-manager could work for you:
https://gist.github.com/magnetikonline/6f215db058e327905bce66c37f92426c
from jsonschema.
Not sure how I can; maybe. My context is not a Go project but a Dockerfile
:
FROM golang:alpine AS build
# renovate: datasource=github-releases depName=santhosh-tekuri/jsonschema versioning=semver
ENV JV_VERSION="0.3.1"
RUN go install github.com/santhosh-tekuri/jsonschema/cmd/jv@v${JV_VERSION}
# snipped
Together with this packageRule
fΓΌr Renovate, I got it to work:
{
"packageRules" : [
{
"matchDatasources": ["github-releases"],
"matchPackageNames" : ["santhosh-tekuri/jsonschema"],
"extractVersion": "^cmd/jv/v(?<version>\\d+\\.\\d+\\.\\d+)"
}
]
}
So as long as you keep adding releases according to that naming convention, I'll get automatic updates. Thank you!
from jsonschema.
If you are just interested in cli version, you may like boon cli
this is port of this library to rust language.
from jsonschema.
Related Issues (20)
- Unnecessary `toStringKeys` when using `yaml.v3` HOT 5
- Is Custom format checkers supported? HOT 4
- Support for HTTP references HOT 3
- Add `Draft` to type `Schema` HOT 8
- Add warnings on json schema deprecated fields HOT 1
- Array of oneOfs with required fields fails validation HOT 4
- Draft 2020-12 and array's "items" HOT 2
- Can add `Loader` , give schema and `[]byte` , parse to `map` or `struct` ? HOT 1
- pre-commit hook HOT 3
- request: validate examples HOT 1
- False positive error for a valid regex pattern HOT 1
- invalid jsonType: time.Time HOT 3
- Compiler short circuits when validating schemas, not providing the full list of errors
- Extension.Validate provides data in inconsistent order HOT 1
- Getting property name when compiling and validating user-defined keyword via extensions HOT 5
- Feature request: Pass custom compiler into "convenience" functions like CompileString HOT 2
- Performance drop when schema has "uniqueItems" set to true HOT 7
- Custom error message HOT 9
- About using jsonschema.CompileString 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 jsonschema.