GithubHelp home page GithubHelp logo

gotit's Introduction

Gotit

Help You Got It (golang dependencies)

License Travis branch Coverage Status Go Report Card GoDoc

中文文档

Gotit is a Golang package cache proxy, proudly powered by betproxy.

Just change the proxy settings of your package management tool to Gotit, and Gotit will automatically pull, cache and update all dependencies for you.

Features

  • Faster Pulling is very fast when hitting the cache.
  • Reliable Gotit can continue working on the cache after disconnecting or deleting the origin repository.
  • Transparency In theory, Gotit can work with all Go package management tools. (needs to skip HTTPS certificate verification)

Deployment

Requirements

Make sure the git and go executable is on your PATH variable.

Installation

go get github.com/faceair/gotit

Run

Run Gotit on port 8080

$GOPATH/bin/gotit -port 8080

Run gotit directly see help for other commands. Gotit use system GOPATH to save dependencies by default.

Configure dependency management tool

dep

dep don't support skip HTTPS certificate verification, we need patch dep. You can build it yourself in this fork repository or download modified binary files.

Then set HTTPS_PROXY to Gotit address

HTTPS_PROXY=http://127.0.0.1:8080 dep ensure -v

or

export HTTPS_PROXY=http://127.0.0.1:8080
dep ensure -v

glide

glide also need a patch, download binary directly.

HTTPS_PROXY=http://127.0.0.1:8080 glide install

go get

HTTPS_PROXY=http://127.0.0.1:8080 GIT_SSL_NO_VERIFY=true go get -v -insecure github.com/faceair/gotit

other

TODO

FAQ

  1. When does Gotit update the repository?

After the client pulls the code, Gotit checks the repository for updates. So if you do not update to the latest version at a time, you can wait and try again.

  1. What is the difference between Gotit and the forward proxy with cache?

Pull code in git http protocol is a post request, it cannot be cached.

gotit's People

Contributors

faceair avatar jamlee avatar

Watchers

 avatar  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.