Giter Site home page Giter Site logo

dubproxy's Introduction

dubproxy

Build Status dubproxy is a library and cli to allow use of private dub packages and mirror code.dlang.org, without a private registry. It is a standalone library/cli and is completely transparent for dub.

private libraries

Sometimes a dub project needs access to a private library. Subpackages are one solution, but getting dub to correctly work with subpackages is not always easy. Therefor, it is sometimes desirable to complete split out subpackages into there own dub project. Dubproxy allows to do that. One of dubproxy's features is to take local/remote dub projects, located in a git, and insert them into ~/.dub/packages such that dub thinks its just another package from code.dlang.org.

code.dlang.org mirroring

Code.dlang.org is not always accessible, but a still might be required right now. Maybe you are on a flight to dconf or code.dlang.org is down. Dubproxy allows you to get a storable list of all packages and upstream urls. This list can then be used by dubproxy to get a particular package or package-version. You need internet access of course. As time of writing this Aug. 2019 all gits of all package of code.dlang.org require about 6.5 GB of space.

Examples

  1. Get dubproxy(cli)
$ dub fetch dubproxy
$ dub build --config=cli
  1. put dubproxy in your path or use $ dub run dubproxy --
  2. get list of code.dlang.org packages
$ dubproxy -m -n codedlangorg.json
  1. get a package from a dubproxyfile
$ dubproxy -i codedlangorg.json -g xlsxd

By default dubproxy will try to place the git in system default dub directory.

  1. get a package and place the git a user specified directory
$ dubproxy -i codeldangorg.json -g xlsxreader -f GitCloneFolder
$ dubproxy -i codeldangorg.json -g xlsxreader:v0.6.1 -f GitCloneFolder
  1. place the dub package in a user specified directory
$ dubproxy -i codeldangorg.json -g graphqld -o SomePackageFolder
  1. get multiple packages
$ dubproxy -i codeldangorg.json -g graphqld -g inifiled
  1. get all packages in a file (run before long flight)
$ dubproxy -i codeldangorg.json -a -u

The -u is necessary to disable user interaction, because some listed packages on code.dlang.org do not exist anymore and github.com therefore askeds for a username password combination.

  1. dub is not in your path
$ dubproxy -d path_to_dub
  1. git is not in your path
$ dubproxy -p path_to_git
  1. generate a dummy dubproxy.json file with filename myPrivateProjects.json
$ dubproxy --dummy --dummyPath myPrivateProjects.json
  1. get help
$ dubproxy -h

About Kaleidic Associates

We are a boutique consultancy that advises a small number of hedge fund clients. We are not accepting new clients currently, but if you are interested in working either remotely or locally in London or Hong Kong, and if you are a talented hacker with a moral compass who aspires to excellence then feel free to drop me a line: laeeth at kaleidic.io

We work with our partner Symmetry Investments, and some background on the firm can be found here:

http://symmetryinvestments.com/about-us/

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.