Giter Club home page Giter Club logo

go-semver-oracle's Introduction

Golang semantic versioning oracle

Under construction

go-semver-oracle compares two versions of software and computes a lower bound on the semantic versioning difference between them.

This project combines two of my petty peeves:

If I have a point with this, beyond curmudgery, it’s that the semantic versions are consistently underestimated and that almost all such version bumps should be major ones.

Limitations

This software can only ever compute a lower bound on semantic version difference because of the halting problem. To take a less dramatic example, consider the following package:

package foo

func Bar() *int { x := 1729; return &x }

If we change this package to

package foo

func Bar() *int { return nil }

the oracle will report only a patch version bump, but the behavior of the package has arguably changed in a non-backwards-compatible way (the invariant foo.Bar() != nil broke), so it should get a major version bump.

One can come up with less contrived examples, but the larger point is that static analysis can only infer so much about the runtime behavior of a system, so our computations will always be based on a subset of the effective changes between versions. Thus we can only say that the software changed at least this much between versions.

License

This software is licensed under the GPLv3. See LICENSE for a copy.

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.