GithubHelp home page GithubHelp logo

Can not install v5.2.0 about jsonschema HOT 7 CLOSED

reitzig avatar reitzig commented on May 27, 2024
Can not install v5.2.0

from jsonschema.

Comments (7)

reitzig avatar reitzig commented on May 27, 2024

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.

santhosh-tekuri avatar santhosh-tekuri commented on May 27, 2024

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.

reitzig avatar reitzig commented on May 27, 2024

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.

santhosh-tekuri avatar santhosh-tekuri commented on May 27, 2024

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.

santhosh-tekuri avatar santhosh-tekuri commented on May 27, 2024

may be using gomod package-manager could work for you:

https://gist.github.com/magnetikonline/6f215db058e327905bce66c37f92426c

from jsonschema.

reitzig avatar reitzig commented on May 27, 2024

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.

santhosh-tekuri avatar santhosh-tekuri commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.