Giter Site home page Giter Site logo

samuelcouch / gophr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gophr-pm/gophr

0.0 1.0 0.0 15.2 MB

Native package management for Go.

Home Page: https://gophr.pm

License: Apache License 2.0

Go 93.42% Shell 2.35% Perl 0.07% Nginx 0.28% JavaScript 2.34% CSS 1.48% HTML 0.05%

gophr's Introduction

Gophr - golang package management

Go Report Card GoDoc Build Status Coverage Status

An end-to-end package management solution for Go. No manifest or lock file and a fully versioned dependency graph. Simply place the url in your import path and it's automatically fully versioned.

gophr.pm/author/repo@(semver or SHA)

Native golang dependency management

go get can only retrieve the current master branch. If you ever need to re-download your dependency it could be totally different each time.

  import (
      // Un-versioned github link
      "github.com/a/b"
  )

Gophr dependency management and versioning

Gophr allows you to version lock your dependencies by semver or SHA.

  import (
      // Version current master branch
      "gophr.pm/a/b"
      // Version by semver
      "gophr.pm/a/[email protected]"
      // Version by semver logic
      "gophr.pm/a/b@>1.0.0"
      "gophr.pm/a/b@<1.3.2"
      // Version by partial or full SHA (Anything between 6 - 40 Characters)
      "gophr.pm/a/b@24638c"
      "gophr.pm/a/b@24638c6d1aaa1"
      "gophr.pm/a/b@24638c6d1aaa1a39c14c704918e354fd3949b93c"
  )

The problem with native Golang dependency management

Golang has no ability to version a specific SHA or tag for a repo. Anytime you pull down an import it grabs the current master branch. This not only bad practice but it could potentially silently break your code without you ever knowing why.

There are plenty of Golang versioning tools. What makes Gophr special?

Gophr doesn't require you to install any tooling to use. Simply place the versioned url gophr.pm/author/repo@(semver or SHA) in your import path and you're done.

We give you the power of semver to reference tags and create logical equivalence operations just like in gem and npm.

"gophr.pm/a/b@>1.0.4"
"gophr.pm/a/b@<1.0.0"

We also fully version the entire dependency graph. Meaning, we version lock every sub-dependency as well, so it's perfectly preserved, everytime. Something no one else does.

Gophr Resources

Questions, comments, concerns? Feel free to open an issue or reach out on slack @shikkic, @skeswa or @ZacharyThomas

gophr's People

Contributors

skeswa avatar shikkic avatar eeclaire avatar yasabere avatar

Watchers

 avatar

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.