diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ca4a043c62..9e4ded0b15 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -30,10 +30,6 @@ "-v", "${localWorkspaceFolder}/composer/Gemfile:/home/dependabot/dependabot-core/composer/Gemfile", "-v", "${localWorkspaceFolder}/composer/lib:/home/dependabot/dependabot-core/composer/lib", "-v", "${localWorkspaceFolder}/composer/spec:/home/dependabot/dependabot-core/composer/spec", - "-v", "${localWorkspaceFolder}/dep/dependabot-dep.gemspec:/home/dependabot/dependabot-core/dep/dependabot-dep.gemspec", - "-v", "${localWorkspaceFolder}/dep/Gemfile:/home/dependabot/dependabot-core/dep/Gemfile", - "-v", "${localWorkspaceFolder}/dep/lib:/home/dependabot/dependabot-core/dep/lib", - "-v", "${localWorkspaceFolder}/dep/spec:/home/dependabot/dependabot-core/dep/spec", "-v", "${localWorkspaceFolder}/docker/dependabot-docker.gemspec:/home/dependabot/dependabot-core/docker/dependabot-docker.gemspec", "-v", "${localWorkspaceFolder}/docker/Gemfile:/home/dependabot/dependabot-core/docker/Gemfile", "-v", "${localWorkspaceFolder}/docker/lib:/home/dependabot/dependabot-core/docker/lib", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9980524024..53c0f5c80a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,6 @@ jobs: - { path: cargo, name: cargo } - { path: common, name: common } - { path: composer, name: composer } - - { path: dep, name: dep } - { path: docker, name: docker } - { path: elm, name: elm } - { path: git_submodules, name: git_submodules } diff --git a/Dockerfile b/Dockerfile index bd247b715f..5d9d9436ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -166,20 +166,15 @@ USER root ### GO -# Install Go and dep +# Install Go ARG GOLANG_VERSION=1.16.3 ARG GOLANG_CHECKSUM=951a3c7c6ce4e56ad883f97d9db74d3d6d80d5fec77455c6ada6c1f7ac4776d2 -ENV PATH=/opt/go/bin:$PATH \ - GOPATH=/opt/go/gopath +ENV PATH=/opt/go/bin:$PATH RUN cd /tmp \ && curl --http1.1 -o go.tar.gz https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz \ && echo "$GOLANG_CHECKSUM go.tar.gz" | sha256sum -c - \ && tar -xzf go.tar.gz -C /opt \ - && rm go.tar.gz \ - && mkdir "$GOPATH" \ - && chown dependabot:dependabot "$GOPATH" \ - && curl -sSLfo /opt/go/bin/dep https://github.com/golang/dep/releases/download/v0.5.4/dep-linux-amd64 \ - && chmod +x /opt/go/bin/dep + && rm go.tar.gz ### ELIXIR @@ -232,7 +227,6 @@ RUN apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(ls USER root COPY --chown=dependabot:dependabot composer/helpers /opt/composer/helpers -COPY --chown=dependabot:dependabot dep/helpers /opt/dep/helpers COPY --chown=dependabot:dependabot bundler/helpers /opt/bundler/helpers COPY --chown=dependabot:dependabot go_modules/helpers /opt/go_modules/helpers COPY --chown=dependabot:dependabot hex/helpers /opt/hex/helpers @@ -241,7 +235,7 @@ COPY --chown=dependabot:dependabot python/helpers /opt/python/helpers COPY --chown=dependabot:dependabot terraform/helpers /opt/terraform/helpers ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt" \ - PATH="$PATH:/opt/terraform/bin:/opt/python/bin:/opt/go_modules/bin:/opt/dep/bin" \ + PATH="$PATH:/opt/terraform/bin:/opt/python/bin:/opt/go_modules/bin" \ MIX_HOME="/opt/hex/mix" USER dependabot @@ -249,7 +243,6 @@ RUN mkdir -p /opt/bundler/v1 \ && mkdir -p /opt/bundler/v2 RUN bash /opt/bundler/helpers/v1/build /opt/bundler/v1 RUN bash /opt/bundler/helpers/v2/build /opt/bundler/v2 -RUN bash /opt/dep/helpers/build /opt/dep RUN bash /opt/go_modules/helpers/build /opt/go_modules RUN bash /opt/hex/helpers/build /opt/hex RUN bash /opt/npm_and_yarn/helpers/build /opt/npm_and_yarn diff --git a/Dockerfile.ci b/Dockerfile.ci index 92a3f2a462..a29388e9b3 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -8,7 +8,6 @@ WORKDIR ${CODE_DIR} COPY --chown=dependabot:dependabot .rubocop.yml ${CODE_DIR}/.rubocop.yml COPY --chown=dependabot:dependabot omnibus ${CODE_DIR}/omnibus -COPY --chown=dependabot:dependabot dep ${CODE_DIR}/dep COPY --chown=dependabot:dependabot git_submodules ${CODE_DIR}/git_submodules COPY --chown=dependabot:dependabot terraform ${CODE_DIR}/terraform COPY --chown=dependabot:dependabot github_actions ${CODE_DIR}/github_actions diff --git a/Dockerfile.development b/Dockerfile.development index b7447a9a25..a1ba2d0413 100644 --- a/Dockerfile.development +++ b/Dockerfile.development @@ -23,7 +23,6 @@ RUN cd common \ COPY --chown=dependabot:dependabot bundler/Gemfile bundler/dependabot-bundler.gemspec ${CODE_DIR}/bundler/ COPY --chown=dependabot:dependabot cargo/Gemfile cargo/dependabot-cargo.gemspec ${CODE_DIR}/cargo/ COPY --chown=dependabot:dependabot composer/Gemfile composer/dependabot-composer.gemspec ${CODE_DIR}/composer/ -COPY --chown=dependabot:dependabot dep/Gemfile dep/dependabot-dep.gemspec ${CODE_DIR}/dep/ COPY --chown=dependabot:dependabot docker/Gemfile docker/dependabot-docker.gemspec ${CODE_DIR}/docker/ COPY --chown=dependabot:dependabot elm/Gemfile elm/dependabot-elm.gemspec ${CODE_DIR}/elm/ COPY --chown=dependabot:dependabot git_submodules/Gemfile git_submodules/dependabot-git_submodules.gemspec ${CODE_DIR}/git_submodules/ diff --git a/Rakefile b/Rakefile index a344d9edfb..7b14cb3741 100644 --- a/Rakefile +++ b/Rakefile @@ -24,7 +24,6 @@ GEMSPECS = %w( bundler/dependabot-bundler.gemspec elm/dependabot-elm.gemspec cargo/dependabot-cargo.gemspec - dep/dependabot-dep.gemspec npm_and_yarn/dependabot-npm_and_yarn.gemspec composer/dependabot-composer.gemspec hex/dependabot-hex.gemspec diff --git a/bin/docker-dev-shell b/bin/docker-dev-shell index ae00ac665f..b566b34292 100755 --- a/bin/docker-dev-shell +++ b/bin/docker-dev-shell @@ -172,12 +172,6 @@ docker run --rm -ti \ -v "$(pwd)/cargo/lib:$CODE_DIR/cargo/lib" \ -v "$(pwd)/cargo/spec:$CODE_DIR/cargo/spec" \ -v "$(pwd)/cargo/script:$CODE_DIR/cargo/script" \ - -v "$(pwd)/dep/.rubocop.yml:$CODE_DIR/dep/.rubocop.yml" \ - -v "$(pwd)/dep/Gemfile:$CODE_DIR/dep/Gemfile" \ - -v "$(pwd)/dep/dependabot-dep.gemspec:$CODE_DIR/dep/dependabot-dep.gemspec" \ - -v "$(pwd)/dep/lib:$CODE_DIR/dep/lib" \ - -v "$(pwd)/dep/spec:$CODE_DIR/dep/spec" \ - -v "$(pwd)/dep/script:$CODE_DIR/dep/script" \ -v "$(pwd)/go_modules/.rubocop.yml:$CODE_DIR/go_modules/.rubocop.yml" \ -v "$(pwd)/go_modules/Gemfile:$CODE_DIR/go_modules/Gemfile" \ -v "$(pwd)/go_modules/dependabot-go_modules.gemspec:$CODE_DIR/go_modules/dependabot-go_modules.gemspec" \ diff --git a/bin/dry-run.rb b/bin/dry-run.rb index 430d345ab7..83dd57d766 100755 --- a/bin/dry-run.rb +++ b/bin/dry-run.rb @@ -27,7 +27,6 @@ # - hex # - composer # - nuget -# - dep # - go_modules # - elm # - submodules @@ -40,7 +39,6 @@ $LOAD_PATH << "./cargo/lib" $LOAD_PATH << "./common/lib" $LOAD_PATH << "./composer/lib" -$LOAD_PATH << "./dep/lib" $LOAD_PATH << "./docker/lib" $LOAD_PATH << "./elm/lib" $LOAD_PATH << "./git_submodules/lib" @@ -77,7 +75,6 @@ require "dependabot/bundler" require "dependabot/cargo" require "dependabot/composer" -require "dependabot/dep" require "dependabot/docker" require "dependabot/elm" require "dependabot/git_submodules" diff --git a/dep/.gitignore b/dep/.gitignore deleted file mode 100644 index 01104755a2..0000000000 --- a/dep/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -/.bundle/ -/.env -/tmp -/dependabot-*.gem -/helpers/go-helpers.*64 -/helpers/install-dir -Gemfile.lock diff --git a/dep/.rubocop.yml b/dep/.rubocop.yml deleted file mode 100644 index fc2019d46a..0000000000 --- a/dep/.rubocop.yml +++ /dev/null @@ -1 +0,0 @@ -inherit_from: ../.rubocop.yml diff --git a/dep/Gemfile b/dep/Gemfile deleted file mode 100644 index 430599a9e1..0000000000 --- a/dep/Gemfile +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -source "https://rubygems.org" - -gem "dependabot-common", path: "../common" - -gemspec diff --git a/dep/README.md b/dep/README.md deleted file mode 100644 index b3debd02f8..0000000000 --- a/dep/README.md +++ /dev/null @@ -1,22 +0,0 @@ -## `dependabot-dep` - -Go dep support for [`dependabot-core`][core-repo]. - -### Running locally - -1. Install native helpers - ``` - $ helpers/build "$(pwd)/helpers" - ``` - -2. Install Ruby dependencies - ``` - $ bundle install - ``` - -3. Run tests - ``` - $ bundle exec rspec spec - ``` - -[core-repo]: https://github.com/dependabot/dependabot-core diff --git a/dep/dependabot-dep.gemspec b/dep/dependabot-dep.gemspec deleted file mode 100644 index 3356aa4c18..0000000000 --- a/dep/dependabot-dep.gemspec +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -require "find" - -Gem::Specification.new do |spec| - common_gemspec = - Bundler.load_gemspec_uncached("../common/dependabot-common.gemspec") - - spec.name = "dependabot-dep" - spec.summary = "Go dep support for dependabot" - spec.version = common_gemspec.version - spec.description = common_gemspec.description - - spec.author = common_gemspec.author - spec.email = common_gemspec.email - spec.homepage = common_gemspec.homepage - spec.license = common_gemspec.license - - spec.require_path = "lib" - spec.files = [] - - spec.required_ruby_version = common_gemspec.required_ruby_version - spec.required_rubygems_version = common_gemspec.required_ruby_version - - spec.add_dependency "dependabot-common", Dependabot::VERSION - - common_gemspec.development_dependencies.each do |dep| - spec.add_development_dependency dep.name, dep.requirement.to_s - end - - next unless File.exist?("../.gitignore") - - ignores = File.readlines("../.gitignore").grep(/\S+/).map(&:chomp) - - next unless File.directory?("lib") && File.directory?("helpers") - - prefix = "/" + File.basename(File.expand_path(__dir__)) + "/" - Find.find("lib", "helpers") do |path| - if ignores.any? { |i| File.fnmatch(i, prefix + path, File::FNM_DOTMATCH) } - Find.prune - else - spec.files << path unless File.directory?(path) - end - end -end diff --git a/dep/helpers/Makefile b/dep/helpers/Makefile deleted file mode 100644 index aaa82b1075..0000000000 --- a/dep/helpers/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -.PHONY = all - -all: darwin linux - -darwin: - GO111MODULE=on GOOS=darwin GOARCH=amd64 go build -o go-helpers.darwin64 . - -linux: - GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o go-helpers.linux64 . diff --git a/dep/helpers/build b/dep/helpers/build deleted file mode 100755 index 319f17ea9a..0000000000 --- a/dep/helpers/build +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -set -e - -install_dir=$1 -if [ -z "$install_dir" ]; then - echo "usage: $0 INSTALL_DIR" - exit 1 -fi - -if ! [[ "$install_dir" =~ ^/ ]]; then - echo "$install_dir must be an absolute path" - exit 1 -fi - -if [ ! -d "$install_dir/bin" ]; then - mkdir -p "$install_dir/bin" -fi - -helpers_dir="$(dirname "${BASH_SOURCE[0]}")" -cd "$helpers_dir" - -os="$(uname -s | tr '[:upper:]' '[:lower:]')" -echo "building $install_dir/bin/helper" - -GO111MODULE=on GOOS="$os" GOARCH=amd64 go build -o "$install_dir/bin/helper" . diff --git a/dep/helpers/go.mod b/dep/helpers/go.mod deleted file mode 100644 index 16cbb85b59..0000000000 --- a/dep/helpers/go.mod +++ /dev/null @@ -1,10 +0,0 @@ -module github.com/dependabot/dependabot-core/helpers/go - -require ( - github.com/Masterminds/vcs v1.12.0 - github.com/dependabot/dependabot-core/helpers/go/importresolver v0.0.0 -) - -replace github.com/dependabot/dependabot-core/helpers/go/importresolver => ./importresolver - -go 1.13 diff --git a/dep/helpers/go.sum b/dep/helpers/go.sum deleted file mode 100644 index 1dadec11d4..0000000000 --- a/dep/helpers/go.sum +++ /dev/null @@ -1,2 +0,0 @@ -github.com/Masterminds/vcs v1.12.0 h1:bt9Hb4XlfmEfLnVA0MVz2NO0GFuMN5vX8iOWW38Xde4= -github.com/Masterminds/vcs v1.12.0/go.mod h1:N09YCmOQr6RLxC6UNHzuVwAdodYbbnycGHSmwVJjcKA= diff --git a/dep/helpers/importresolver/go.mod b/dep/helpers/importresolver/go.mod deleted file mode 100644 index 2b13831940..0000000000 --- a/dep/helpers/importresolver/go.mod +++ /dev/null @@ -1 +0,0 @@ -module github.com/dependabot/dependabot-core/helpers/go/importresolver diff --git a/dep/helpers/importresolver/main.go b/dep/helpers/importresolver/main.go deleted file mode 100644 index 938980edbe..0000000000 --- a/dep/helpers/importresolver/main.go +++ /dev/null @@ -1,34 +0,0 @@ -package importresolver - -import ( - "io/ioutil" - "strings" - - "github.com/Masterminds/vcs" -) - -type Args struct { - Import string -} - -func VCSRemoteForImport(args *Args) (interface{}, error) { - remote := args.Import - scheme := strings.Split(remote, ":")[0] - switch scheme { - case "http", "https": - default: - remote = "https://" + remote - } - - local, err := ioutil.TempDir("", "unused-vcs-local-dir") - if err != nil { - return nil, err - } - - repo, err := vcs.NewRepo(remote, local) - if err != nil { - return nil, err - } - - return repo.Remote(), nil -} diff --git a/dep/helpers/main.go b/dep/helpers/main.go deleted file mode 100644 index 9af1db129b..0000000000 --- a/dep/helpers/main.go +++ /dev/null @@ -1,67 +0,0 @@ -package main - -import ( - "encoding/json" - "fmt" - "log" - "os" - - "github.com/dependabot/dependabot-core/helpers/go/importresolver" -) - -type HelperParams struct { - Function string `json:"function"` - Args json.RawMessage `json:"args"` -} - -type Output struct { - Error string `json:"error,omitempty"` - Result interface{} `json:"result,omitempty"` -} - -func main() { - d := json.NewDecoder(os.Stdin) - helperParams := &HelperParams{} - if err := d.Decode(helperParams); err != nil { - abort(err) - } - - var ( - funcOut interface{} - funcErr error - ) - switch helperParams.Function { - case "getVcsRemoteForImport": - var args importresolver.Args - parseArgs(helperParams.Args, &args) - funcOut, funcErr = importresolver.VCSRemoteForImport(&args) - default: - abort(fmt.Errorf("Unrecognised function '%s'", helperParams.Function)) - } - - if funcErr != nil { - abort(funcErr) - } - - output(&Output{Result: funcOut}) -} - -func parseArgs(data []byte, args interface{}) { - if err := json.Unmarshal(data, args); err != nil { - abort(err) - } -} - -func output(o *Output) { - bytes, jsonErr := json.Marshal(o) - if jsonErr != nil { - log.Fatal(jsonErr) - } - - os.Stdout.Write(bytes) -} - -func abort(err error) { - output(&Output{Error: err.Error()}) - os.Exit(1) -} diff --git a/dep/lib/dependabot/dep.rb b/dep/lib/dependabot/dep.rb deleted file mode 100644 index 9d8a59fd91..0000000000 --- a/dep/lib/dependabot/dep.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -# These all need to be required so the various classes can be registered in a -# lookup table of package manager names to concrete classes. -require "dependabot/dep/file_fetcher" -require "dependabot/dep/file_parser" -require "dependabot/dep/update_checker" -require "dependabot/dep/file_updater" -require "dependabot/dep/metadata_finder" -require "dependabot/dep/requirement" -require "dependabot/dep/version" - -require "dependabot/pull_request_creator/labeler" -Dependabot::PullRequestCreator::Labeler. - register_label_details("dep", name: "go", colour: "16e2e2") - -require "dependabot/dependency" -Dependabot::Dependency.register_production_check("dep", ->(_) { true }) diff --git a/dep/lib/dependabot/dep/file_fetcher.rb b/dep/lib/dependabot/dep/file_fetcher.rb deleted file mode 100644 index 722ab82e10..0000000000 --- a/dep/lib/dependabot/dep/file_fetcher.rb +++ /dev/null @@ -1,70 +0,0 @@ -# frozen_string_literal: true - -require "dependabot/file_fetchers" -require "dependabot/file_fetchers/base" - -module Dependabot - module Dep - class FileFetcher < Dependabot::FileFetchers::Base - def self.required_files_in?(filenames) - (%w(Gopkg.toml Gopkg.lock) - filenames).empty? - end - - def self.required_files_message - "Repo must contain a Gopkg.toml and Gopkg.lock." - end - - private - - def fetch_files - fetched_files = [] - fetched_files << manifest if manifest - fetched_files << lockfile if lockfile - - unless manifest - raise( - Dependabot::DependencyFileNotFound, - File.join(directory, "Gopkg.toml") - ) - end - - unless lockfile - raise( - Dependabot::DependencyFileNotFound, - File.join(directory, "Gopkg.lock") - ) - end - - # Fetch the main.go file if present, as this will later identify - # this repo as an app. - fetched_files << main if main - fetched_files - end - - def manifest - @manifest ||= fetch_file_if_present("Gopkg.toml") - end - - def lockfile - @lockfile ||= fetch_file_if_present("Gopkg.lock") - end - - def main - return @main if @main - - go_files = repo_contents.select { |f| f.name.end_with?(".go") } - - go_files.each do |go_file| - file = fetch_file_from_host(go_file.name, type: "package_main") - next unless file.content.match?(/\s*package\s+main/) - - return @main = file.tap { |f| f.support_file = true } - end - - nil - end - end - end -end - -Dependabot::FileFetchers.register("dep", Dependabot::Dep::FileFetcher) diff --git a/dep/lib/dependabot/dep/file_parser.rb b/dep/lib/dependabot/dep/file_parser.rb deleted file mode 100644 index 5597bb5c00..0000000000 --- a/dep/lib/dependabot/dep/file_parser.rb +++ /dev/null @@ -1,187 +0,0 @@ -# frozen_string_literal: true - -require "toml-rb" - -require "dependabot/errors" -require "dependabot/dependency" -require "dependabot/shared_helpers" -require "dependabot/source" - -require "dependabot/file_parsers" -require "dependabot/file_parsers/base" -require "dependabot/dep/requirement" -require "dependabot/dep/path_converter" - -# Relevant dep docs can be found at: -# - https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md -# - https://github.com/golang/dep/blob/master/docs/Gopkg.lock.md -module Dependabot - module Dep - class FileParser < Dependabot::FileParsers::Base - require "dependabot/file_parsers/base/dependency_set" - - REQUIREMENT_TYPES = %w(constraint override).freeze - - def parse - dependency_set = DependencySet.new - dependency_set += manifest_dependencies - dependency_set += lockfile_dependencies - dependency_set.dependencies - end - - private - - def manifest_dependencies - dependency_set = DependencySet.new - - REQUIREMENT_TYPES.each do |type| - parsed_file(manifest).fetch(type, []).each do |details| - next if lockfile && !appears_in_lockfile?(details.fetch("name")) - next if missing_version_in_manifest_and_lockfile(details) - - dependency_set << Dependency.new( - name: details.fetch("name"), - version: version_from_declaration(details), - package_manager: "dep", - requirements: [{ - requirement: requirement_from_declaration(details), - file: manifest.name, - groups: [], - source: source_from_declaration(details) - }] - ) - end - end - - dependency_set - end - - def lockfile_dependencies - dependency_set = DependencySet.new - - parsed_file(lockfile).fetch("projects", []).each do |details| - dependency_set << Dependency.new( - name: details.fetch("name"), - version: version_from_lockfile(details), - package_manager: "dep", - requirements: [] - ) - end - - dependency_set - end - - def version_from_lockfile(details) - details["version"]&.sub(/^v?/, "") || details.fetch("revision") - end - - def requirement_from_declaration(declaration) - raise "Unexpected dependency declaration: #{declaration}" unless declaration.is_a?(Hash) - - return if git_declaration?(declaration) - - declaration["version"] - end - - def source_from_declaration(declaration) - source = declaration["source"] || declaration["name"] - - git_source_url = git_source(source) - - if git_source_url && git_declaration?(declaration) - { - type: "git", - url: git_source_url, - branch: declaration["branch"], - ref: declaration["revision"] || declaration["version"] - } - elsif git_declaration?(declaration) - raise "No git source for a git declaration!" - else - { - type: "default", - source: source - } - end - end - - def version_from_declaration(declaration) - lockfile_details = - parsed_file(lockfile).fetch("projects", []). - find { |details| details["name"] == declaration.fetch("name") } - - if source_from_declaration(declaration).fetch(:type) == "git" - lockfile_details["revision"] || - version_from_lockfile(lockfile_details) - else - version_from_lockfile(lockfile_details) - end - end - - def appears_in_lockfile?(dependency_name) - parsed_file(lockfile).fetch("projects", []). - any? { |details| details["name"] == dependency_name } - end - - def git_declaration?(declaration) - return true if declaration["branch"] || declaration["revision"] - return false unless declaration["version"] - return false unless declaration["version"].match?(/^[A-Za-z0-9]/) - - Dep::Requirement.new(declaration["version"]) - false - rescue Gem::Requirement::BadRequirementError - true - end - - def git_source(path) - Dependabot::Dep::PathConverter.git_url_for_path(path) - rescue Dependabot::SharedHelpers::HelperSubprocessFailed => e - if e.message == "Cannot detect VCS" - msg = e.message + " for #{path}" - raise Dependabot::DependencyFileNotResolvable, msg - end - - if e.message.end_with?("Not Found") - msg = "#{path} returned a 404" - raise Dependabot::DependencyFileNotResolvable, msg - end - - raise - end - - def parsed_file(file) - @parsed_file ||= {} - @parsed_file[file.name] ||= TomlRB.parse(file.content) - rescue TomlRB::ParseError, TomlRB::ValueOverwriteError - raise Dependabot::DependencyFileNotParseable, file.path - end - - def manifest - @manifest ||= get_original_file("Gopkg.toml") - end - - def lockfile - @lockfile ||= get_original_file("Gopkg.lock") - end - - def check_required_files - %w(Gopkg.toml Gopkg.lock).each do |filename| - raise "No #{filename}!" unless get_original_file(filename) - end - end - - def missing_version_in_manifest_and_lockfile(declaration) - return false if git_declaration?(declaration) - - lockfile_decl = - parsed_file(lockfile). - fetch("projects", []). - find { |details| details["name"] == declaration["name"] } - lockfile_decl&.fetch("version", nil).nil? - end - end - end -end - -Dependabot::FileParsers.register("dep", Dependabot::Dep::FileParser) diff --git a/dep/lib/dependabot/dep/file_updater.rb b/dep/lib/dependabot/dep/file_updater.rb deleted file mode 100644 index f87d74cb95..0000000000 --- a/dep/lib/dependabot/dep/file_updater.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -require "dependabot/shared_helpers" -require "dependabot/file_updaters" -require "dependabot/file_updaters/base" - -module Dependabot - module Dep - class FileUpdater < Dependabot::FileUpdaters::Base - require_relative "file_updater/manifest_updater" - require_relative "file_updater/lockfile_updater" - - def self.updated_files_regex - [ - /^Gopkg\.toml$/, - /^Gopkg\.lock$/ - ] - end - - def updated_dependency_files - updated_files = [] - - if manifest && file_changed?(manifest) - updated_files << - updated_file( - file: manifest, - content: updated_manifest_content - ) - end - - if lockfile - updated_files << - updated_file(file: lockfile, content: updated_lockfile_content) - end - - raise "No files changed!" if updated_files.none? - - updated_files - end - - private - - def check_required_files - return if get_original_file("Gopkg.toml") - - raise "No Gopkg.toml!" - end - - def manifest - @manifest ||= get_original_file("Gopkg.toml") - end - - def lockfile - @lockfile ||= get_original_file("Gopkg.lock") - end - - def updated_manifest_content - ManifestUpdater.new( - dependencies: dependencies, - manifest: manifest - ).updated_manifest_content - end - - def updated_lockfile_content - LockfileUpdater.new( - dependencies: dependencies, - dependency_files: dependency_files, - credentials: credentials - ).updated_lockfile_content - end - end - end -end - -Dependabot::FileUpdaters.register("dep", Dependabot::Dep::FileUpdater) diff --git a/dep/lib/dependabot/dep/file_updater/lockfile_updater.rb b/dep/lib/dependabot/dep/file_updater/lockfile_updater.rb deleted file mode 100644 index a3a6d0aa56..0000000000 --- a/dep/lib/dependabot/dep/file_updater/lockfile_updater.rb +++ /dev/null @@ -1,217 +0,0 @@ -# frozen_string_literal: true - -require "toml-rb" -require "open3" -require "dependabot/shared_helpers" -require "dependabot/dependency_file" -require "dependabot/dep/file_updater" -require "dependabot/dep/file_parser" - -module Dependabot - module Dep - class FileUpdater - class LockfileUpdater - def initialize(dependencies:, dependency_files:, credentials:) - @dependencies = dependencies - @dependency_files = dependency_files - @credentials = credentials - end - - def updated_lockfile_content - deps = dependencies.select { |d| appears_in_lockfile(d) } - return lockfile.content if deps.none? - - base_directory = File.join("src", "project", - dependency_files.first.directory) - base_parts = base_directory.split("/").length - updated_content = - SharedHelpers.in_a_temporary_directory(base_directory) do |dir| - write_temporary_dependency_files - - SharedHelpers.with_git_configured(credentials: credentials) do - # Shell out to dep, which handles everything for us. - # Note: We are currently doing a full install here (we're not - # passing no-vendor) because dep needs to generate the digests - # for each project. - command = "dep ensure -update #{deps.map(&:name).join(' ')}" - dir_parts = dir.realpath.to_s.split("/") - gopath = File.join(dir_parts[0..-(base_parts + 1)]) - run_shell_command(command, "GOPATH" => gopath) - end - - File.read("Gopkg.lock") - end - - updated_content - end - - private - - attr_reader :dependencies, :dependency_files, :credentials - - def run_shell_command(command, env = {}) - start = Time.now - command = SharedHelpers.escape_command(command) - stdout, process = Open3.capture2e(env, command) - time_taken = Time.now - start - - # Raise an error with the output from the shell session if dep - # returns a non-zero status - return if process.success? - - raise SharedHelpers::HelperSubprocessFailed.new( - message: stdout, - error_context: { - command: command, - time_taken: time_taken, - process_exit_value: process.to_s - } - ) - end - - def write_temporary_dependency_files - File.write(lockfile.name, lockfile.content) - - # Overwrite the manifest with our custom prepared one - File.write(prepared_manifest.name, prepared_manifest.content) - - File.write("hello.go", dummy_app_content) - end - - def prepared_manifest - DependencyFile.new( - name: manifest.name, - content: prepared_manifest_content - ) - end - - def prepared_manifest_content - parsed_manifest = TomlRB.parse(manifest.content) - - parsed_manifest["override"] = - add_fsnotify_override(parsed_manifest["override"]) - - dependencies.each do |dep| - req = dep.requirements.find { |r| r[:file] == manifest.name } - next unless appears_in_lockfile(dep) - - if req - update_constraint!(parsed_manifest, dep) - else - create_constraint!(parsed_manifest, dep) - end - end - - TomlRB.dump(parsed_manifest) - end - - # Used to lock the version when updating a top-level dependency - def update_constraint!(parsed_manifest, dep) - details = - parsed_manifest. - values_at(*Dep::FileParser::REQUIREMENT_TYPES). - flatten.compact.find { |d| d["name"] == dep.name } - - req = dep.requirements.find { |r| r[:file] == manifest.name } - - if req.fetch(:source).fetch(:type) == "git" && !details["branch"] - # NOTE: we don't try to update to a specific revision if the - # branch was previously specified because the change in - # specification type would be persisted in the lockfile - details["revision"] = dep.version if details["revision"] - details["version"] = dep.version if details["version"] - elsif req.fetch(:source).fetch(:type) == "default" - details.delete("branch") - details.delete("revision") - details["version"] = "=#{dep.version}" - end - end - - # Used to lock the version when updating a subdependency - def create_constraint!(parsed_manifest, dep) - details = { "name" => dep.name } - - # Fetch the details from the lockfile to check whether this - # sub-dependency needs a git revision or a version. - original_details = - parsed_file(lockfile).fetch("projects"). - find { |p| p["name"] == dep.name } - - details["source"] = original_details["source"] if original_details["source"] - - if original_details["version"] - details["version"] = dep.version - else - details["revision"] = dep.version - end - - parsed_manifest["constraint"] ||= [] - parsed_manifest["constraint"] << details - end - - # Work around a dep bug that results in a panic - def add_fsnotify_override(overrides) - overrides ||= [] - dep_name = "gopkg.in/fsnotify.v1" - - override = overrides.find { |s| s["name"] == dep_name } - if override.nil? - override = { "name" => dep_name } - overrides << override - end - - override["source"] = "gopkg.in/fsnotify/fsnotify.v1" unless override["source"] - - overrides - end - - def dummy_app_content - base = "package main\n\n"\ - "import \"fmt\"\n\n" - - packages_to_import.each { |nm| base += "import \"#{nm}\"\n\n" } - - base + "func main() {\n fmt.Printf(\"hello, world\\n\")\n}" - end - - def packages_to_import - parsed_lockfile = TomlRB.parse(lockfile.content) - - # If the lockfile was created using dep v0.5.0+ then it will tell us - # exactly which packages to import - if parsed_lockfile.dig("solve-meta", "input-imports") - return parsed_lockfile.dig("solve-meta", "input-imports") - end - - # Otherwise we have no way of knowing, so import everything in the - # lockfile that isn't marked as internal - parsed_lockfile.fetch("projects").flat_map do |dep| - dep["packages"].map do |package| - next if package.start_with?("internal") - - package == "." ? dep["name"] : File.join(dep["name"], package) - end.compact - end - end - - def appears_in_lockfile(dep) - !parsed_file(lockfile)["projects"]&. - find { |p| p["name"] == dep.name }.nil? - end - - def parsed_file(file) - @parsed_file ||= {} - @parsed_file[file.name] ||= TomlRB.parse(file.content) - end - - def manifest - @manifest ||= dependency_files.find { |f| f.name == "Gopkg.toml" } - end - - def lockfile - @lockfile ||= dependency_files.find { |f| f.name == "Gopkg.lock" } - end - end - end - end -end diff --git a/dep/lib/dependabot/dep/file_updater/manifest_updater.rb b/dep/lib/dependabot/dep/file_updater/manifest_updater.rb deleted file mode 100644 index b1bb22ba53..0000000000 --- a/dep/lib/dependabot/dep/file_updater/manifest_updater.rb +++ /dev/null @@ -1,150 +0,0 @@ -# frozen_string_literal: true - -require "dependabot/dep/file_updater" - -module Dependabot - module Dep - class FileUpdater - class ManifestUpdater - def initialize(dependencies:, manifest:) - @dependencies = dependencies - @manifest = manifest - end - - def updated_manifest_content - dependencies. - select { |dep| requirement_changed?(manifest, dep) }. - reduce(manifest.content.dup) do |content, dep| - updated_content = content - - updated_content = update_requirements( - content: updated_content, - filename: manifest.name, - dependency: dep - ) - updated_content = update_git_pin( - content: updated_content, - filename: manifest.name, - dependency: dep - ) - - raise "Expected content to change!" if content == updated_content - - updated_content - end - end - - private - - attr_reader :dependencies, :manifest - - def requirement_changed?(file, dependency) - changed_requirements = - dependency.requirements - dependency.previous_requirements - - changed_requirements.any? { |f| f[:file] == file.name } - end - - def update_requirements(content:, filename:, dependency:) - updated_content = content.dup - - # The UpdateChecker ensures the order of requirements is preserved - # when updating, so we can zip them together in new/old pairs. - reqs = dependency.requirements. - zip(dependency.previous_requirements). - reject { |new_req, old_req| new_req == old_req } - - # Loop through each changed requirement - reqs.each do |new_req, old_req| - raise "Bad req match" unless new_req[:file] == old_req[:file] - next if new_req[:requirement] == old_req[:requirement] - next unless new_req[:file] == filename - - updated_content = update_manifest_req( - content: updated_content, - dep: dependency, - old_req: old_req.fetch(:requirement), - new_req: new_req.fetch(:requirement) - ) - end - - updated_content - end - - def update_git_pin(content:, filename:, dependency:) - updated_pin = - dependency.requirements. - find { |r| r[:file] == filename }&. - dig(:source, :ref) - - old_pin = - dependency.previous_requirements. - find { |r| r[:file] == filename }&. - dig(:source, :ref) - - return content unless old_pin - - update_manifest_pin( - content: content, - dep: dependency, - old_pin: old_pin, - new_pin: updated_pin - ) - end - - # rubocop:disable Metrics/PerceivedComplexity - def update_manifest_req(content:, dep:, old_req:, new_req:) - declaration = content.scan(declaration_regex(dep)). - find { |m| old_req.nil? || m.include?(old_req) } - - return content unless declaration - - if old_req && new_req - content.gsub(declaration) do |line| - line.gsub(old_req, new_req) - end - elsif old_req && new_req.nil? - content.gsub(declaration) do |line| - line.gsub(/\R+.*version\s*=.*/, "") - end - elsif old_req.nil? && new_req - content.gsub(declaration) do |line| - indent = line.match(/(?\s*)name/). - named_captures.fetch("indent") - version_declaration = indent + "version = \"#{new_req}\"" - line.gsub(/name\s*=.*/) { |nm_ln| nm_ln + version_declaration } - end - end - end - - # rubocop:enable Metrics/PerceivedComplexity - - def update_manifest_pin(content:, dep:, old_pin:, new_pin:) - declaration = content.scan(declaration_regex(dep)). - find { |m| m.include?(old_pin) } - - return content unless declaration - - if old_pin && new_pin - content.gsub(declaration) do |line| - line.gsub(old_pin, new_pin) - end - elsif old_pin && new_pin.nil? - content.gsub(declaration) do |line| - line.gsub(/\R+.*(revision|branch)\s*=.*/, "") - end - end - end - - def declaration_regex(dep) - / - (?<=\]\]) - (?:(?!^\[).)* - name\s*=\s*["']#{Regexp.escape(dep.name)}["'] - (?:(?!^\[).)* - /mx - end - end - end - end -end diff --git a/dep/lib/dependabot/dep/metadata_finder.rb b/dep/lib/dependabot/dep/metadata_finder.rb deleted file mode 100644 index 361a0971ca..0000000000 --- a/dep/lib/dependabot/dep/metadata_finder.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -require "dependabot/metadata_finders" -require "dependabot/metadata_finders/base" -require "dependabot/dep/path_converter" - -module Dependabot - module Dep - class MetadataFinder < Dependabot::MetadataFinders::Base - private - - def look_up_source - return look_up_git_dependency_source if git_dependency? - - path_str = (specified_source_string || dependency.name) - url = Dependabot::Dep::PathConverter. - git_url_for_path_without_go_helper(path_str) - Source.from_url(url) if url - end - - def git_dependency? - return false unless declared_source_details - - dependency_type = - declared_source_details.fetch(:type, nil) || - declared_source_details.fetch("type") - - dependency_type == "git" - end - - def look_up_git_dependency_source - specified_url = - declared_source_details.fetch(:url, nil) || - declared_source_details.fetch("url") - - Source.from_url(specified_url) - end - - def specified_source_string - declared_source_details&.fetch(:source, nil) || - declared_source_details&.fetch("source", nil) - end - - def declared_source_details - sources = dependency.requirements. - map { |r| r.fetch(:source) }. - uniq.compact - - raise "Multiple sources! #{sources.join(', ')}" if sources.count > 1 - - sources.first - end - end - end -end - -Dependabot::MetadataFinders.register("dep", Dependabot::Dep::MetadataFinder) diff --git a/dep/lib/dependabot/dep/native_helpers.rb b/dep/lib/dependabot/dep/native_helpers.rb deleted file mode 100644 index d704b7f45d..0000000000 --- a/dep/lib/dependabot/dep/native_helpers.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Dependabot - module Dep - module NativeHelpers - def self.helper_path - clean_path(File.join(native_helpers_root, "dep/bin/helper")) - end - - def self.native_helpers_root - default_path = File.join(__dir__, "../../../helpers/install-dir") - ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", default_path) - end - - def self.clean_path(path) - Pathname.new(path).cleanpath.to_path - end - end - end -end diff --git a/dep/lib/dependabot/dep/path_converter.rb b/dep/lib/dependabot/dep/path_converter.rb deleted file mode 100644 index cf86aa0076..0000000000 --- a/dep/lib/dependabot/dep/path_converter.rb +++ /dev/null @@ -1,74 +0,0 @@ -# frozen_string_literal: true - -require "excon" -require "nokogiri" - -require "dependabot/shared_helpers" -require "dependabot/source" -require "dependabot/dep/native_helpers" - -module Dependabot - module Dep - module PathConverter - def self.git_url_for_path(path) - # Save a query by manually converting golang.org/x names - import_path = path.gsub(%r{^golang\.org/x}, "github.com/golang") - - SharedHelpers.run_helper_subprocess( - command: NativeHelpers.helper_path, - function: "getVcsRemoteForImport", - args: { import: import_path } - ) - end - - # rubocop:disable Metrics/PerceivedComplexity - # Used in dependabot-backend, which doesn't have access to any Go - # helpers. - # TODO: remove the need for this. - def self.git_url_for_path_without_go_helper(path) - # Save a query by manually converting golang.org/x names - tmp_path = path.gsub(%r{^golang\.org/x}, "github.com/golang") - - # Currently, Dependabot::Source.new will return `nil` if it can't - # find a git SCH associated with a path. If it is ever extended to - # handle non-git sources we'll need to add an additional check here. - return Source.from_url(tmp_path).url if Source.from_url(tmp_path) - return "https://#{tmp_path}" if tmp_path.end_with?(".git") - return unless (metadata_response = fetch_path_metadata(path)) - - # Look for a GitHub, Bitbucket or GitLab URL in the response - metadata_response.scan(Dependabot::Source::SOURCE_REGEX) do - source_url = Regexp.last_match.to_s - return Source.from_url(source_url).url - end - - # If none are found, parse the response and return the go-import path - doc = Nokogiri::XML(metadata_response) - doc.remove_namespaces! - import_details = - doc.xpath("//meta"). - find { |n| n.attributes["name"]&.value == "go-import" }&. - attributes&.fetch("content")&.value&.split(/\s+/) - return unless import_details && import_details[1] == "git" - - import_details[2] - end - # rubocop:enable Metrics/PerceivedComplexity - - def self.fetch_path_metadata(path) - # TODO: This is not robust! Instead, we should shell out to Go and - # use https://github.com/Masterminds/vcs. - response = Excon.get( - "https://#{path}?go-get=1", - idempotent: true, - **SharedHelpers.excon_defaults - ) - - return unless response.status == 200 - - response.body - end - private_class_method :fetch_path_metadata - end - end -end diff --git a/dep/lib/dependabot/dep/requirement.rb b/dep/lib/dependabot/dep/requirement.rb deleted file mode 100644 index a03fe3cd54..0000000000 --- a/dep/lib/dependabot/dep/requirement.rb +++ /dev/null @@ -1,149 +0,0 @@ -# frozen_string_literal: true - -################################################################################ -# For more details on Go version constraints, see: # -# - https://github.com/Masterminds/semver # -# - https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md # -################################################################################ - -require "dependabot/dep/version" -require "dependabot/utils" - -module Dependabot - module Dep - class Requirement < Gem::Requirement - WILDCARD_REGEX = /(?:\.|^)[xX*]/.freeze - OR_SEPARATOR = /(?<=[a-zA-Z0-9*])\s*\|{2}/.freeze - - # Override the version pattern to allow a 'v' prefix - quoted = OPS.keys.map { |k| Regexp.quote(k) }.join("|") - version_pattern = "v?#{Dep::Version::VERSION_PATTERN}" - - PATTERN_RAW = "\\s*(#{quoted})?\\s*(#{version_pattern})\\s*" - PATTERN = /\A#{PATTERN_RAW}\z/.freeze - - # Use Dep::Version rather than Gem::Version to ensure that - # pre-release versions aren't transformed. - def self.parse(obj) - return ["=", Dep::Version.new(obj.to_s)] if obj.is_a?(Gem::Version) - - unless (matches = PATTERN.match(obj.to_s)) - msg = "Illformed requirement [#{obj.inspect}]" - raise BadRequirementError, msg - end - - return DefaultRequirement if matches[1] == ">=" && matches[2] == "0" - - [matches[1] || "=", Dep::Version.new(matches[2])] - end - - # Returns an array of requirements. At least one requirement from the - # returned array must be satisfied for a version to be valid. - def self.requirements_array(requirement_string) - return [new(nil)] if requirement_string.nil? - - requirement_string.strip.split(OR_SEPARATOR).map do |req_string| - new(req_string) - end - end - - def initialize(*requirements) - requirements = requirements.flatten.flat_map do |req_string| - req_string.split(",").map(&:strip).map do |r| - convert_go_constraint_to_ruby_constraint(r.strip) - end - end - - super(requirements) - end - - private - - def convert_go_constraint_to_ruby_constraint(req_string) - req_string = convert_wildcard_characters(req_string) - - if req_string.match?(WILDCARD_REGEX) - ruby_range(req_string.gsub(WILDCARD_REGEX, "").gsub(/^[^\d]/, "")) - elsif req_string.match?(/^~[^>]/) then convert_tilde_req(req_string) - elsif req_string.include?(" - ") then convert_hyphen_req(req_string) - elsif req_string.match?(/^[\dv^]/) then convert_caret_req(req_string) - elsif req_string.match?(/[<=>]/) then req_string - else ruby_range(req_string) - end - end - - def convert_wildcard_characters(req_string) - if req_string.match?(/^[\dv^>~]/) - replace_wildcard_in_lower_bound(req_string) - elsif req_string.start_with?("<") - parts = req_string.split(".") - parts.map.with_index do |part, index| - next "0" if part.match?(WILDCARD_REGEX) - next part.to_i + 1 if parts[index + 1]&.match?(WILDCARD_REGEX) - - part - end.join(".") - else - req_string - end - end - - def replace_wildcard_in_lower_bound(req_string) - after_wildcard = false - - req_string = req_string.gsub(/(?:(?:\.|^)[xX*])(\.[xX*])+/, "") if req_string.start_with?("~") - - req_string.split("."). - map do |part| - part.split("-").map.with_index do |p, i| - # Before we hit a wildcard we just return the existing part - next p unless p.match?(WILDCARD_REGEX) || after_wildcard - - # On or after a wildcard we replace the version part with zero - after_wildcard = true - i.zero? ? "0" : "a" - end.join("-") - end.join(".") - end - - def convert_tilde_req(req_string) - version = req_string.gsub(/^~/, "") - parts = version.split(".") - parts << "0" if parts.count < 3 - "~> #{parts.join('.')}" - end - - def convert_hyphen_req(req_string) - lower_bound, upper_bound = req_string.split(/\s+-\s+/) - [">= #{lower_bound}", "<= #{upper_bound}"] - end - - def ruby_range(req_string) - parts = req_string.split(".") - - # If we have three or more parts then this is an exact match - return req_string if parts.count >= 3 - - # If we have no parts then the version is completely unlocked - return ">= 0" if parts.count.zero? - - # If we have fewer than three parts we do a partial match - parts << "0" - "~> #{parts.join('.')}" - end - - # NOTE: Dep's caret notation implementation doesn't distinguish between - # pre and post-1.0.0 requirements (unlike in JS) - def convert_caret_req(req_string) - version = req_string.gsub(/^\^?v?/, "") - parts = version.split(".") - upper_bound = [parts.first.to_i + 1, 0, 0, "a"].map(&:to_s).join(".") - - [">= #{version}", "< #{upper_bound}"] - end - end - end -end - -Dependabot::Utils. - register_requirement_class("dep", Dependabot::Dep::Requirement) diff --git a/dep/lib/dependabot/dep/update_checker.rb b/dep/lib/dependabot/dep/update_checker.rb deleted file mode 100644 index 5dd9f955bf..0000000000 --- a/dep/lib/dependabot/dep/update_checker.rb +++ /dev/null @@ -1,306 +0,0 @@ -# frozen_string_literal: true - -require "toml-rb" -require "dependabot/update_checkers" -require "dependabot/update_checkers/base" - -module Dependabot - module Dep - class UpdateChecker < Dependabot::UpdateCheckers::Base - require_relative "update_checker/file_preparer" - require_relative "update_checker/latest_version_finder" - require_relative "update_checker/requirements_updater" - require_relative "update_checker/version_resolver" - - def latest_version - @latest_version ||= - LatestVersionFinder.new( - dependency: dependency, - dependency_files: dependency_files, - credentials: credentials, - ignored_versions: ignored_versions - ).latest_version - end - - def latest_resolvable_version - # We don't yet support updating indirect dependencies for dep - return dependency.version unless dependency.top_level? - - @latest_resolvable_version ||= - if modules_dependency? - latest_version - elsif git_dependency? - latest_resolvable_version_for_git_dependency - else - latest_resolvable_released_version(unlock_requirement: true) - end - end - - def latest_resolvable_version_with_no_unlock - # We don't yet support updating indirect dependencies for dep - return dependency.version unless dependency.top_level? - - @latest_resolvable_version_with_no_unlock ||= - if git_dependency? - latest_resolvable_commit_with_unchanged_git_source - else - latest_resolvable_released_version(unlock_requirement: false) - end - end - - def updated_requirements - @updated_requirements ||= - RequirementsUpdater.new( - requirements: dependency.requirements, - updated_source: updated_source, - update_strategy: requirements_update_strategy, - latest_version: latest_version&.to_s, - latest_resolvable_version: latest_resolvable_version&.to_s - ).updated_requirements - end - - def requirements_update_strategy - # If passed in as an option (in the base class) honour that option - return @requirements_update_strategy.to_sym if @requirements_update_strategy - - # Otherwise, widen ranges for libraries and bump versions for apps - library? ? :widen_ranges : :bump_versions - end - - private - - def latest_version_resolvable_with_full_unlock? - # Full unlock checks aren't implemented for Go (yet) - false - end - - def updated_dependencies_after_full_unlock - raise NotImplementedError - end - - # Override the base class's check for whether this is a git dependency, - # since not all dep git dependencies have a SHA version (sometimes their - # version is the tag) - def existing_version_is_sha? - return git_dependency? if dependency.top_level? - - super - end - - def library? - dependency_files.none? { |f| f.type == "package_main" } - end - - def latest_resolvable_version_for_git_dependency - return latest_version if modules_dependency? - - latest_release = - begin - latest_resolvable_released_version(unlock_requirement: true) - rescue SharedHelpers::HelperSubprocessFailed => e - raise unless e.message.include?("Solving failure") - end - - # If there's a resolvable release that includes the current pinned - # ref or that the current branch is behind, we switch to that release. - return latest_release if git_branch_or_ref_in_release?(latest_release) - - # Otherwise, if the gem isn't pinned, the latest version is just the - # latest commit for the specified branch. - return latest_resolvable_commit_with_unchanged_git_source unless git_commit_checker.pinned? - - # If the dependency is pinned to a tag that looks like a version then - # we want to update that tag. - if git_commit_checker.pinned_ref_looks_like_version? && - latest_git_tag_is_resolvable? - new_tag = git_commit_checker.local_tag_for_latest_version - return version_from_tag(new_tag) - end - - # If the dependency is pinned to a tag that doesn't look like a - # version then there's nothing we can do. - nil - end - - def version_from_tag(tag) - # To compare with the current version we either use the commit SHA - # (if that's what the parser picked up) of the tag name. - return tag&.fetch(:commit_sha) if dependency.version&.match?(/^[0-9a-f]{40}$/) - - tag&.fetch(:tag) - end - - def latest_resolvable_commit_with_unchanged_git_source - return @latest_resolvable_commit_with_unchanged_git_source if @commit_lookup_attempted - - @commit_lookup_attempted = true - @latest_resolvable_commit_with_unchanged_git_source ||= - begin - prepared_files = FilePreparer.new( - dependency_files: dependency_files, - dependency: dependency, - unlock_requirement: false, - remove_git_source: false, - latest_allowable_version: latest_version - ).prepared_dependency_files - - VersionResolver.new( - dependency: dependency, - dependency_files: prepared_files, - credentials: credentials - ).latest_resolvable_version - end - rescue SharedHelpers::HelperSubprocessFailed => e - # This should rescue resolvability errors in future - raise unless e.message.include?("Solving failure") - end - - def latest_resolvable_released_version(unlock_requirement:) - @latest_resolvable_released_version ||= {} - @latest_resolvable_released_version[unlock_requirement] ||= - begin - prepared_files = FilePreparer.new( - dependency_files: dependency_files, - dependency: dependency, - unlock_requirement: unlock_requirement, - remove_git_source: git_dependency?, - latest_allowable_version: latest_version - ).prepared_dependency_files - - VersionResolver.new( - dependency: dependency, - dependency_files: prepared_files, - credentials: credentials - ).latest_resolvable_version - end - end - - def latest_git_tag_is_resolvable? - return @git_tag_resolvable if @latest_git_tag_is_resolvable_checked - - @latest_git_tag_is_resolvable_checked = true - - return false if git_commit_checker.local_tag_for_latest_version.nil? - - replacement_tag = git_commit_checker.local_tag_for_latest_version - - prepared_files = FilePreparer.new( - dependency: dependency, - dependency_files: dependency_files, - unlock_requirement: false, - remove_git_source: false, - replacement_git_pin: replacement_tag.fetch(:tag) - ).prepared_dependency_files - - VersionResolver.new( - dependency: dependency, - dependency_files: prepared_files, - credentials: credentials - ).latest_resolvable_version - - @git_tag_resolvable = true - rescue SharedHelpers::HelperSubprocessFailed => e - # This should rescue resolvability errors in future - raise unless e.message.include?("Solving failure") - - @git_tag_resolvable = false - end - - def updated_source - # Never need to update source, unless a git_dependency - return dependency_source_details unless git_dependency? - - # Source becomes `nil` if switching to default rubygems - return default_source if should_switch_source_from_ref_to_release? - - # Update the git tag if updating a pinned version - if git_commit_checker.pinned_ref_looks_like_version? && - latest_git_tag_is_resolvable? - new_tag = git_commit_checker.local_tag_for_latest_version - return dependency_source_details.merge(ref: new_tag.fetch(:tag)) - end - - # Otherwise return the original source - dependency_source_details - end - - def dependency_source_details - sources = - dependency.requirements.map { |r| r.fetch(:source) }.uniq.compact - - raise "Multiple sources! #{sources.join(', ')}" if sources.count > 1 - - sources.first - end - - def should_switch_source_from_ref_to_release? - return false unless git_dependency? - return false if latest_resolvable_version_for_git_dependency.nil? - - Gem::Version.correct?(latest_resolvable_version_for_git_dependency) - end - - def modules_dependency? - # If dep is being used then we use that to determine the latest - # version we can update to (since it will have resolvability - # requirements, whereas Go modules won't) - !dependency_in_gopkg_lock? - end - - def dependency_in_gopkg_lock? - lockfile = dependency_files.find { |f| f.name == "Gopkg.lock" } - return false unless lockfile - - parsed_file(lockfile).fetch("projects", []).any? do |details| - details.fetch("name") == dependency.name - end - end - - def git_dependency? - git_commit_checker.git_dependency? - end - - def default_source - return { type: "default", source: dependency.name } if modules_dependency? - - original_declaration = - parsed_file(manifest). - values_at(*Dep::FileParser::REQUIREMENT_TYPES). - flatten.compact. - find { |d| d["name"] == dependency.name } - - { - type: "default", - source: - original_declaration&.fetch("source", nil) || dependency.name - } - end - - def git_branch_or_ref_in_release?(release) - return false unless release - - git_commit_checker.branch_or_ref_in_release?(release) - end - - def parsed_file(file) - @parsed_file ||= {} - @parsed_file[file.name] ||= TomlRB.parse(file.content) - end - - def manifest - @manifest ||= dependency_files.find { |f| f.name == "Gopkg.toml" } - end - - def git_commit_checker - @git_commit_checker ||= - GitCommitChecker.new( - dependency: dependency, - credentials: credentials, - ignored_versions: ignored_versions - ) - end - end - end -end - -Dependabot::UpdateCheckers.register("dep", Dependabot::Dep::UpdateChecker) diff --git a/dep/lib/dependabot/dep/update_checker/file_preparer.rb b/dep/lib/dependabot/dep/update_checker/file_preparer.rb deleted file mode 100644 index ef037f16c5..0000000000 --- a/dep/lib/dependabot/dep/update_checker/file_preparer.rb +++ /dev/null @@ -1,219 +0,0 @@ -# frozen_string_literal: true - -require "toml-rb" -require "dependabot/dependency_file" -require "dependabot/dep/file_parser" -require "dependabot/dep/update_checker" - -module Dependabot - module Dep - class UpdateChecker - # This class takes a set of dependency files and prepares them for use - # in Dep::UpdateChecker. - class FilePreparer - def initialize(dependency_files:, dependency:, - remove_git_source: false, - unlock_requirement: true, - replacement_git_pin: nil, - latest_allowable_version: nil) - @dependency_files = dependency_files - @dependency = dependency - @unlock_requirement = unlock_requirement - @remove_git_source = remove_git_source - @replacement_git_pin = replacement_git_pin - @latest_allowable_version = latest_allowable_version - end - - def prepared_dependency_files - files = [] - - files << manifest_for_update_check - files << lockfile if lockfile - - files - end - - private - - attr_reader :dependency_files, :dependency, :replacement_git_pin, - :latest_allowable_version - - def unlock_requirement? - @unlock_requirement - end - - def remove_git_source? - @remove_git_source - end - - def replace_git_pin? - !replacement_git_pin.nil? - end - - def manifest_for_update_check - DependencyFile.new( - name: manifest.name, - content: manifest_content_for_update_check(manifest), - directory: manifest.directory - ) - end - - def manifest_content_for_update_check(file) - content = file.content - - content = remove_git_source(content) if remove_git_source? - content = replace_git_pin(content) if replace_git_pin? - content = replace_version_constraint(content, file.name) - content = add_fsnotify_override(content) - - content - end - - def remove_git_source(content) - parsed_manifest = TomlRB.parse(content) - - Dep::FileParser::REQUIREMENT_TYPES.each do |type| - (parsed_manifest[type] || []).each do |details| - next unless details["name"] == dependency.name - - details.delete("revision") - details.delete("branch") - end - end - - TomlRB.dump(parsed_manifest) - end - - def replace_git_pin(content) - parsed_manifest = TomlRB.parse(content) - - Dep::FileParser::REQUIREMENT_TYPES.each do |type| - (parsed_manifest[type] || []).each do |details| - next unless details["name"] == dependency.name - - raise "Invalid details! #{details}" if details["branch"] - - if details["version"] - details["version"] = replacement_git_pin - else - details["revision"] = replacement_git_pin - end - end - end - - TomlRB.dump(parsed_manifest) - end - - # NOTE: We don't need to care about formatting in this method, since - # we're only using the manifest to find the latest resolvable version - def replace_version_constraint(content, filename) - parsed_manifest = TomlRB.parse(content) - - Dep::FileParser::REQUIREMENT_TYPES.each do |type| - (parsed_manifest[type] || []).each do |details| - next unless details["name"] == dependency.name - next if details["revision"] || details["branch"] - next if replacement_git_pin - - updated_req = temporary_requirement_for_resolution(filename) - - details["version"] = updated_req - end - end - - TomlRB.dump(parsed_manifest) - end - - # A dep bug means we have to specify a source for gopkg.in/fsnotify.v1 - # or we get `panic: version queue is empty` errors - def add_fsnotify_override(content) - parsed_manifest = TomlRB.parse(content) - - overrides = parsed_manifest.fetch("override", []) - dep_name = "gopkg.in/fsnotify.v1" - - override = overrides.find { |s| s["name"] == dep_name } - if override.nil? - override = { "name" => dep_name } - overrides << override - end - - override["source"] = "gopkg.in/fsnotify/fsnotify.v1" unless override["source"] - - parsed_manifest["override"] = overrides - TomlRB.dump(parsed_manifest) - end - - def temporary_requirement_for_resolution(filename) - original_req = dependency.requirements. - find { |r| r.fetch(:file) == filename }&. - fetch(:requirement) - - lower_bound_req = - if original_req && !unlock_requirement? - original_req - else - ">= #{lower_bound_version}" - end - - unless latest_allowable_version && - version_class.correct?(latest_allowable_version) && - version_class.new(latest_allowable_version) >= - version_class.new(lower_bound_version) - return lower_bound_req - end - - lower_bound_req + ", <= #{latest_allowable_version}" - end - - # rubocop:disable Metrics/PerceivedComplexity - def lower_bound_version - @lower_bound_version ||= - if version_from_lockfile - version_from_lockfile - else - version_from_requirement = - dependency.requirements.map { |r| r.fetch(:requirement) }. - compact. - flat_map { |req_str| requirement_class.new(req_str) }. - flat_map(&:requirements). - reject { |req_array| req_array.first.start_with?("<") }. - map(&:last). - max&.to_s - - version_from_requirement || 0 - end - end - # rubocop:enable Metrics/PerceivedComplexity - - def version_from_lockfile - return unless lockfile - - TomlRB.parse(lockfile.content). - fetch("projects", []). - find { |p| p["name"] == dependency.name }&. - fetch("version", nil)&. - sub(/^v?/, "") - end - - def version_class - Utils.version_class_for_package_manager(dependency.package_manager) - end - - def requirement_class - Utils.requirement_class_for_package_manager( - dependency.package_manager - ) - end - - def manifest - @manifest ||= dependency_files.find { |f| f.name == "Gopkg.toml" } - end - - def lockfile - @lockfile ||= dependency_files.find { |f| f.name == "Gopkg.lock" } - end - end - end - end -end diff --git a/dep/lib/dependabot/dep/update_checker/latest_version_finder.rb b/dep/lib/dependabot/dep/update_checker/latest_version_finder.rb deleted file mode 100644 index 6182fcdde3..0000000000 --- a/dep/lib/dependabot/dep/update_checker/latest_version_finder.rb +++ /dev/null @@ -1,161 +0,0 @@ -# frozen_string_literal: true - -require "excon" -require "toml-rb" - -require "dependabot/source" -require "dependabot/dep/update_checker" -require "dependabot/git_commit_checker" -require "dependabot/dep/path_converter" - -module Dependabot - module Dep - class UpdateChecker - class LatestVersionFinder - def initialize(dependency:, dependency_files:, credentials:, - ignored_versions:) - @dependency = dependency - @dependency_files = dependency_files - @credentials = credentials - @ignored_versions = ignored_versions - end - - def latest_version - @latest_version ||= - if git_dependency? then latest_version_for_git_dependency - else latest_release_tag_version - end - end - - private - - attr_reader :dependency, :dependency_files, :credentials, - :ignored_versions - - def latest_release_tag_version - return @latest_release_tag_version if @latest_release_tag_lookup_attempted - - @latest_release_tag_lookup_attempted = true - - latest_release_str = fetch_latest_release_tag&.sub(/^v?/, "") - return unless latest_release_str - return unless version_class.correct?(latest_release_str) - - @latest_release_tag_version = - version_class.new(latest_release_str) - end - - def fetch_latest_release_tag - # If this is a git dependency then getting the latest tag is trivial - if git_dependency? - return git_commit_checker. - local_tag_for_latest_version&.fetch(:tag) - end - - # If not, we need to find the URL for the source code. - path = dependency.requirements. - map { |r| r.dig(:source, :source) }.compact.first - path ||= dependency.name - - source_url = git_source(path) - return unless source_url - - # Given a source, we want to find the latest tag. Piggy-back off the - # logic in GitCommitChecker to do so. - git_dep = Dependency.new( - name: dependency.name, - version: dependency.version, - requirements: [{ - file: "Gopkg.toml", - groups: [], - requirement: nil, - source: { type: "git", url: source_url, ref: nil, branch: nil } - }], - package_manager: dependency.package_manager - ) - - GitCommitChecker. - new(dependency: git_dep, credentials: credentials). - local_tag_for_latest_version&.fetch(:tag) - end - - def latest_version_for_git_dependency - latest_release = latest_release_tag_version - - # If there's been a release that includes the current pinned ref or - # that the current branch is behind, we switch to that release. - return latest_release if branch_or_ref_in_release?(latest_release) - - # Otherwise, if the gem isn't pinned, the latest version is just the - # latest commit for the specified branch. - return git_commit_checker.head_commit_for_current_branch unless git_commit_checker.pinned? - - # If the dependency is pinned to a tag that looks like a version - # then we want to update that tag. - if git_commit_checker.pinned_ref_looks_like_version? - latest_tag = git_commit_checker.local_tag_for_latest_version - return version_from_tag(latest_tag) - end - - # If the dependency is pinned to a tag that doesn't look like a - # version then there's nothing we can do. - nil - end - - def git_source(path) - Dependabot::Dep::PathConverter.git_url_for_path(path) - end - - def version_from_tag(tag) - # To compare with the current version we either use the commit SHA - # (if that's what the parser picked up) of the tag name. - return tag&.fetch(:commit_sha) if dependency.version&.match?(/^[0-9a-f]{40}$/) - - tag&.fetch(:tag) - end - - def branch_or_ref_in_release?(release) - return false unless release - - git_commit_checker.branch_or_ref_in_release?(release) - end - - def git_dependency? - git_commit_checker.git_dependency? - end - - def git_commit_checker - @git_commit_checker ||= - GitCommitChecker.new( - dependency: dependency, - credentials: credentials, - ignored_versions: ignored_versions - ) - end - - def parsed_file(file) - @parsed_file ||= {} - @parsed_file[file.name] ||= TomlRB.parse(file.content) - end - - def version_class - Utils.version_class_for_package_manager(dependency.package_manager) - end - - def manifest - @manifest ||= dependency_files.find { |f| f.name == "Gopkg.toml" } - raise "No Gopkg.lock!" unless @manifest - - @manifest - end - - def lockfile - @lockfile = dependency_files.find { |f| f.name == "Gopkg.lock" } - raise "No Gopkg.lock!" unless @lockfile - - @lockfile - end - end - end - end -end diff --git a/dep/lib/dependabot/dep/update_checker/requirements_updater.rb b/dep/lib/dependabot/dep/update_checker/requirements_updater.rb deleted file mode 100644 index 59eb78543d..0000000000 --- a/dep/lib/dependabot/dep/update_checker/requirements_updater.rb +++ /dev/null @@ -1,221 +0,0 @@ -# frozen_string_literal: true - -require "dependabot/dep/update_checker" -require "dependabot/dep/requirement" -require "dependabot/dep/version" - -module Dependabot - module Dep - class UpdateChecker - class RequirementsUpdater - class UnfixableRequirement < StandardError; end - - VERSION_REGEX = /[0-9]+(?:\.[A-Za-z0-9\-*]+)*/.freeze - ALLOWED_UPDATE_STRATEGIES = %i(widen_ranges bump_versions).freeze - - def initialize(requirements:, updated_source:, update_strategy:, - latest_version:, latest_resolvable_version:) - @requirements = requirements - @updated_source = updated_source - @update_strategy = update_strategy - - check_update_strategy - - if latest_version && version_class.correct?(latest_version) - @latest_version = version_class.new(latest_version) - end - - return unless latest_resolvable_version - return unless version_class.correct?(latest_resolvable_version) - - @latest_resolvable_version = - version_class.new(latest_resolvable_version) - end - - def updated_requirements - requirements.map do |req| - req = req.merge(source: updated_source) - next req unless latest_resolvable_version - next initial_req_after_source_change(req) unless req[:requirement] - - case update_strategy - when :widen_ranges then widen_requirement(req) - when :bump_versions then update_version(req) - else raise "Unexpected update strategy: #{update_strategy}" - end - end - end - - private - - attr_reader :requirements, :updated_source, :update_strategy, - :latest_version, :latest_resolvable_version - - def check_update_strategy - return if ALLOWED_UPDATE_STRATEGIES.include?(update_strategy) - - raise "Unknown update strategy: #{update_strategy}" - end - - def updating_from_git_to_version? - return false unless updated_source&.fetch(:type) == "default" - - original_source = requirements.map { |r| r[:source] }.compact.first - original_source&.fetch(:type) == "git" - end - - def initial_req_after_source_change(req) - return req unless updating_from_git_to_version? - return req unless req.fetch(:requirement).nil? - - new_req = - if req.fetch(:file) == "go.mod" - "v#{latest_resolvable_version.to_s.gsub(/^v/, '')}" - else - "^#{latest_resolvable_version}" - end - req.merge(requirement: new_req) - end - - def widen_requirement(req) - current_requirement = req[:requirement] - version = latest_resolvable_version - - ruby_reqs = ruby_requirements(current_requirement) - return req if ruby_reqs.any? { |r| r.satisfied_by?(version) } - - reqs = current_requirement.strip.split(",").map(&:strip) - - updated_requirement = - if current_requirement.include?("||") - # Further widen the range by adding another OR condition - current_requirement + " || ^#{version}" - elsif reqs.any? { |r| r.match?(/(<|-\s)/) } - # Further widen the range by updating the upper bound - update_range_requirement(current_requirement) - else - # Convert existing requirement to a range - create_new_range_requirement(reqs) - end - - req.merge(requirement: updated_requirement) - end - - def update_version(req) - current_requirement = req[:requirement] - version = latest_resolvable_version - - ruby_reqs = ruby_requirements(current_requirement) - reqs = current_requirement.strip.split(",").map(&:strip) - - if ruby_reqs.any? { |r| r.satisfied_by?(version) } && - current_requirement.match?(/(<|-\s|\|\|)/) - return req - end - - updated_requirement = - if current_requirement.include?("||") - # Further widen the range by adding another OR condition - current_requirement + " || ^#{version}" - elsif reqs.any? { |r| r.match?(/(<|-\s)/) } - # Further widen the range by updating the upper bound - update_range_requirement(current_requirement) - else - update_version_requirement(reqs) - end - - req.merge(requirement: updated_requirement) - end - - def ruby_requirements(requirement_string) - requirement_class.requirements_array(requirement_string) - end - - def update_range_requirement(req_string) - range_requirement = req_string.split(","). - find { |r| r.match?(/<|(\s+-\s+)/) } - - versions = range_requirement.scan(VERSION_REGEX) - upper_bound = versions.map { |v| version_class.new(v) }.max - new_upper_bound = update_greatest_version( - upper_bound, - latest_resolvable_version - ) - - req_string.sub( - upper_bound.to_s, - new_upper_bound.to_s - ) - end - - def create_new_range_requirement(string_reqs) - version = latest_resolvable_version - - lower_bound = - string_reqs. - map { |req| requirement_class.new(req) }. - flat_map { |req| req.requirements.map(&:last) }. - min.to_s - - upper_bound = - if string_reqs.first.start_with?("~") && - version.to_s.split(".").count > 1 - create_upper_bound_for_tilda_req(string_reqs.first) - else - upper_bound_parts = [version.to_s.split(".").first.to_i + 1] - upper_bound_parts. - fill("0", 1..(lower_bound.split(".").count - 1)). - join(".") - end - - ">= #{lower_bound}, < #{upper_bound}" - end - - def update_version_requirement(string_reqs) - version = latest_resolvable_version.to_s.gsub(/^v/, "") - current_req = string_reqs.first - - current_req.gsub(VERSION_REGEX, version) - end - - def create_upper_bound_for_tilda_req(string_req) - tilda_version = requirement_class.new(string_req). - requirements.map(&:last). - min.to_s - - upper_bound_parts = latest_resolvable_version.to_s.split(".") - upper_bound_parts.slice(0, tilda_version.to_s.split(".").count) - upper_bound_parts[-1] = "0" - upper_bound_parts[-2] = (upper_bound_parts[-2].to_i + 1).to_s - - upper_bound_parts.join(".") - end - - def update_greatest_version(old_version, version_to_be_permitted) - version = version_class.new(old_version) - version = version.release if version.prerelease? - - index_to_update = - version.segments.map.with_index { |seg, i| seg.zero? ? 0 : i }.max - - version.segments.map.with_index do |_, index| - if index < index_to_update - version_to_be_permitted.segments[index] - elsif index == index_to_update - version_to_be_permitted.segments[index] + 1 - else 0 - end - end.join(".") - end - - def version_class - Dep::Version - end - - def requirement_class - Dep::Requirement - end - end - end - end -end diff --git a/dep/lib/dependabot/dep/update_checker/version_resolver.rb b/dep/lib/dependabot/dep/update_checker/version_resolver.rb deleted file mode 100644 index b1c4158440..0000000000 --- a/dep/lib/dependabot/dep/update_checker/version_resolver.rb +++ /dev/null @@ -1,165 +0,0 @@ -# frozen_string_literal: true - -require "toml-rb" -require "open3" -require "dependabot/shared_helpers" -require "dependabot/dep/update_checker" -require "dependabot/errors" - -module Dependabot - module Dep - class UpdateChecker - class VersionResolver - NOT_FOUND_REGEX = - /failed to list versions for (?.*?):\s+/.freeze - INDEX_OUT_OF_RANGE_REGEX = - /panic: runtime error: index out of range.*findValidVersion/m.freeze - - def initialize(dependency:, dependency_files:, credentials:) - @dependency = dependency - @dependency_files = dependency_files - @credentials = credentials - end - - def latest_resolvable_version - return @latest_resolvable_version if defined?(@latest_resolvable_version) - - @latest_resolvable_version = fetch_latest_resolvable_version - end - - private - - attr_reader :dependency, :dependency_files, :credentials - - def fetch_latest_resolvable_version - base_directory = File.join("src", "project", - dependency_files.first.directory) - base_parts = base_directory.split("/").length - updated_version = - SharedHelpers.in_a_temporary_directory(base_directory) do |dir| - write_temporary_dependency_files - - SharedHelpers.with_git_configured(credentials: credentials) do - # Shell out to dep, which handles everything for us, and does - # so without doing an install (so it's fast). - command = "dep ensure -update --no-vendor #{dependency.name}" - dir_parts = dir.realpath.to_s.split("/") - gopath = File.join(dir_parts[0..-(base_parts + 1)]) - run_shell_command(command, "GOPATH" => gopath) - end - - new_lockfile_content = File.read("Gopkg.lock") - - get_version_from_lockfile(new_lockfile_content) - end - - updated_version - rescue SharedHelpers::HelperSubprocessFailed => e - handle_dep_errors(e) - end - - def get_version_from_lockfile(lockfile_content) - package = TomlRB.parse(lockfile_content).fetch("projects"). - find { |p| p["name"] == dependency.name } - - version = package["version"] - - if version && version_class.correct?(version.sub(/^v?/, "")) - version_class.new(version.sub(/^v?/, "")) - elsif version - version - else - package.fetch("revision") - end - end - - def handle_dep_errors(error) - if error.message.match?(NOT_FOUND_REGEX) - url = error.message.match(NOT_FOUND_REGEX). - named_captures.fetch("repo_url") - - raise Dependabot::GitDependenciesNotReachable, url - end - - # A dep bug that probably isn't going to be fixed any time soon :-( - # - https://github.com/golang/dep/issues/1437 - # - https://github.com/golang/dep/issues/649 - # - https://github.com/golang/dep/issues/2041 - # - https://twitter.com/miekg/status/996682296739745792 - return if error.message.match?(INDEX_OUT_OF_RANGE_REGEX) - - raise - end - - def run_shell_command(command, env = {}) - start = Time.now - command = SharedHelpers.escape_command(command) - stdout, process = Open3.capture2e(env, command) - time_taken = Time.now - start - - # Raise an error with the output from the shell session if dep - # returns a non-zero status - return if process.success? - - raise SharedHelpers::HelperSubprocessFailed.new( - message: stdout, - error_context: { - command: command, - time_taken: time_taken, - process_exit_value: process.to_s - } - ) - end - - def write_temporary_dependency_files - dependency_files.each do |file| - path = file.name - FileUtils.mkdir_p(Pathname.new(path).dirname) - File.write(file.name, file.content) - end - - File.write("hello.go", dummy_app_content) - end - - def dummy_app_content - base = "package main\n\n"\ - "import \"fmt\"\n\n" - - packages_to_import.each { |nm| base += "import \"#{nm}\"\n\n" } - - base + "func main() {\n fmt.Printf(\"hello, world\\n\")\n}" - end - - def packages_to_import - return [] unless lockfile - - parsed_lockfile = TomlRB.parse(lockfile.content) - - # If the lockfile was created using dep v0.5.0+ then it will tell us - # exactly which packages to import - if parsed_lockfile.dig("solve-meta", "input-imports") - return parsed_lockfile.dig("solve-meta", "input-imports") - end - - # Otherwise we have no way of knowing, so import everything in the - # lockfile that isn't marked as internal - parsed_lockfile.fetch("projects").flat_map do |dep| - dep["packages"].map do |package| - next if package.start_with?("internal") - - package == "." ? dep["name"] : File.join(dep["name"], package) - end.compact - end - end - - def lockfile - @lockfile = dependency_files.find { |f| f.name == "Gopkg.lock" } - end - - def version_class - Utils.version_class_for_package_manager(dependency.package_manager) - end - end - end - end -end diff --git a/dep/lib/dependabot/dep/version.rb b/dep/lib/dependabot/dep/version.rb deleted file mode 100644 index b5313da491..0000000000 --- a/dep/lib/dependabot/dep/version.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true - -require "rubygems_version_patch" -require "dependabot/utils" - -# Go pre-release versions use 1.0.1-rc1 syntax, which Gem::Version -# converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that -# alteration. -# Best docs are at https://github.com/Masterminds/semver - -module Dependabot - module Dep - class Version < Gem::Version - VERSION_PATTERN = '[0-9]+[0-9a-zA-Z]*(?>\.[0-9a-zA-Z]+)*' \ - '(-[0-9A-Za-z-]+(\.[0-9a-zA-Z-]+)*)?' \ - '(\+incompatible)?' - ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/.freeze - - def self.correct?(version) - version = version.gsub(/^v/, "") if version.is_a?(String) - version = version.to_s.split("+").first if version.to_s.include?("+") - super(version) - end - - def initialize(version) - @version_string = version.to_s.gsub(/^v/, "") - version = version.gsub(/^v/, "") if version.is_a?(String) - version = version.to_s.split("+").first if version.to_s.include?("+") - super - end - - def inspect # :nodoc: - "#<#{self.class} #{@version_string.inspect}>" - end - - def to_s - @version_string - end - end - end -end - -Dependabot::Utils.register_version_class("dep", Dependabot::Dep::Version) diff --git a/dep/script/ci-test b/dep/script/ci-test deleted file mode 100755 index c29bd83bf2..0000000000 --- a/dep/script/ci-test +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -e - -bundle install -bundle exec rubocop . -bundle exec rspec spec diff --git a/dep/spec/dependabot/dep/file_fetcher_spec.rb b/dep/spec/dependabot/dep/file_fetcher_spec.rb deleted file mode 100644 index 41a168a00b..0000000000 --- a/dep/spec/dependabot/dep/file_fetcher_spec.rb +++ /dev/null @@ -1,121 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dep/file_fetcher" -require_common_spec "file_fetchers/shared_examples_for_file_fetchers" - -RSpec.describe Dependabot::Dep::FileFetcher do - it_behaves_like "a dependency file fetcher" - - let(:source) do - Dependabot::Source.new( - provider: "github", - repo: "gocardless/bump", - directory: directory - ) - end - let(:file_fetcher_instance) do - described_class.new(source: source, credentials: credentials) - end - let(:directory) { "/" } - let(:url) { "https://api.github.com/repos/gocardless/bump/contents/" } - let(:credentials) do - [{ - "type" => "git_source", - "host" => "github.com", - "username" => "x-access-token", - "password" => "token" - }] - end - - before do - allow(file_fetcher_instance).to receive(:commit).and_return("sha") - - stub_request(:get, url + "Gopkg.toml?ref=sha"). - with(headers: { "Authorization" => "token token" }). - to_return( - status: 200, - body: fixture("github", "contents_gopkg_toml.json"), - headers: { "content-type" => "application/json" } - ) - stub_request(:get, url + "Gopkg.lock?ref=sha"). - with(headers: { "Authorization" => "token token" }). - to_return( - status: 200, - body: fixture("github", "contents_gopkg_lock.json"), - headers: { "content-type" => "application/json" } - ) - stub_request(:get, url + "?ref=sha"). - with(headers: { "Authorization" => "token token" }). - to_return( - status: 200, - body: fixture("github", "contents_go_library.json"), - headers: { "content-type" => "application/json" } - ) - stub_request(:get, /#{Regexp.quote(url)}.*\.go\?ref=sha/). - with(headers: { "Authorization" => "token token" }). - to_return( - status: 200, - body: fixture("github", "contents_gopkg_lock.json"), - headers: { "content-type" => "application/json" } - ) - end - - context "for a dep project" do - context "without a Gopkg.toml" do - before do - stub_request(:get, url + "Gopkg.toml?ref=sha"). - with(headers: { "Authorization" => "token token" }). - to_return(status: 404) - end - - it "raises a helpful error" do - expect { file_fetcher_instance.files }. - to raise_error(Dependabot::DependencyFileNotFound) - end - end - - context "without a Gopkg.lock" do - before do - stub_request(:get, url + "Gopkg.lock?ref=sha"). - with(headers: { "Authorization" => "token token" }). - to_return(status: 404) - end - - it "raises a helpful error" do - expect { file_fetcher_instance.files }. - to raise_error(Dependabot::DependencyFileNotFound) - end - end - - it "fetches the Gopkg.toml and Gopkg.lock" do - expect(file_fetcher_instance.files.map(&:name)). - to match_array(%w(Gopkg.toml Gopkg.lock)) - end - end - - context "for an application" do - before do - stub_request(:get, url + "?ref=sha"). - with(headers: { "Authorization" => "token token" }). - to_return( - status: 200, - body: fixture("github", "contents_go_app.json"), - headers: { "content-type" => "application/json" } - ) - stub_request(:get, url + "main.go?ref=sha"). - with(headers: { "Authorization" => "token token" }). - to_return( - status: 200, - body: fixture("github", "contents_main_go.json"), - headers: { "content-type" => "application/json" } - ) - end - - it "fetches the main.go, too" do - expect(file_fetcher_instance.files.map(&:name)). - to match_array(%w(Gopkg.toml Gopkg.lock main.go)) - expect(file_fetcher_instance.files.last.type).to eq("package_main") - end - end -end diff --git a/dep/spec/dependabot/dep/file_parser_spec.rb b/dep/spec/dependabot/dep/file_parser_spec.rb deleted file mode 100644 index 73a362e41d..0000000000 --- a/dep/spec/dependabot/dep/file_parser_spec.rb +++ /dev/null @@ -1,262 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dependency_file" -require "dependabot/source" -require "dependabot/dep/file_parser" -require_common_spec "file_parsers/shared_examples_for_file_parsers" - -RSpec.describe Dependabot::Dep::FileParser do - it_behaves_like "a dependency file parser" - - let(:parser) { described_class.new(dependency_files: files, source: source) } - - let(:files) { [manifest, lockfile] } - let(:manifest) do - Dependabot::DependencyFile.new( - name: "Gopkg.toml", - content: fixture("gopkg_tomls", manifest_fixture_name) - ) - end - let(:lockfile) do - Dependabot::DependencyFile.new( - name: "Gopkg.lock", - content: fixture("gopkg_locks", lockfile_fixture_name) - ) - end - let(:manifest_fixture_name) { "cockroach.toml" } - let(:lockfile_fixture_name) { "cockroach.lock" } - let(:source) do - Dependabot::Source.new( - provider: "github", - repo: "gocardless/bump", - directory: "/" - ) - end - - before do - stub_request(:get, "https://golang.org/x/text?go-get=1"). - to_return( - status: 200, - body: fixture("repo_responses", "golang_org_text.html") - ) - end - - describe "parse" do - subject(:dependencies) { parser.parse } - - its(:length) { is_expected.to eq(149) } - - describe "top level dependencies" do - subject(:dependencies) { parser.parse.select(&:top_level?) } - - its(:length) { is_expected.to eq(9) } - - describe "a regular version dependency" do - subject(:dependency) do - dependencies.find { |d| d.name == "github.com/satori/go.uuid" } - end - - it "has the right details" do - expect(dependency).to be_a(Dependabot::Dependency) - expect(dependency.name).to eq("github.com/satori/go.uuid") - expect(dependency.version).to eq("1.2.0") - expect(dependency.requirements).to eq( - [{ - requirement: "v1.2.0", - file: "Gopkg.toml", - groups: [], - source: { - type: "default", - source: "github.com/satori/go.uuid" - } - }] - ) - end - - context "that doesn't declare a version" do - subject(:dependency) do - dependencies.find { |d| d.name == "github.com/dgrijalva/jwt-go" } - end - let(:manifest_fixture_name) { "no_version.toml" } - let(:lockfile_fixture_name) { "no_version.lock" } - - it "has the right details" do - expect(dependency).to be_a(Dependabot::Dependency) - expect(dependency.name).to eq("github.com/dgrijalva/jwt-go") - expect(dependency.version).to eq("1.0.1") - expect(dependency.requirements).to eq( - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - ) - end - end - end - - context "with a dependency that isn't in the lockfile" do - let(:manifest_fixture_name) { "unused_constraint.toml" } - let(:lockfile_fixture_name) { "unused_constraint.lock" } - - its(:length) { is_expected.to eq(1) } - - it "has the right details" do - expect(dependencies.map(&:name)). - to eq(["github.com/dgrijalva/jwt-go"]) - end - end - - describe "a git version dependency" do - subject(:dependency) do - dependencies.find { |d| d.name == "golang.org/x/text" } - end - - it "has the right details" do - expect(dependency).to be_a(Dependabot::Dependency) - expect(dependency.name).to eq("golang.org/x/text") - expect(dependency.version). - to eq("470f45bf29f4147d6fbd7dfd0a02a848e49f5bf4") - expect(dependency.requirements).to eq( - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "470f45bf29f4147d6fbd7dfd0a02a848e49f5bf4" - } - }] - ) - end - - context "that specifies a tag as its revision" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:lockfile_fixture_name) { "tag_as_revision.lock" } - - it "has the right details" do - expect(dependency).to be_a(Dependabot::Dependency) - expect(dependency.name).to eq("golang.org/x/text") - expect(dependency.version).to eq("v0.2.0") - expect(dependency.requirements).to eq( - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.2.0" - } - }] - ) - end - end - - context "that specifies a tag as its version" do - let(:manifest_fixture_name) { "tag_as_version.toml" } - let(:lockfile_fixture_name) { "tag_as_version.lock" } - subject(:dependency) do - dependencies.find { |d| d.name == "github.com/globalsign/mgo" } - end - - it "has the right details" do - expect(dependency).to be_a(Dependabot::Dependency) - expect(dependency.name).to eq("github.com/globalsign/mgo") - expect(dependency.version). - to eq("efe0945164a7e582241f37ae8983c075f8f2e870") - expect(dependency.requirements).to eq( - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/globalsign/mgo", - branch: nil, - ref: "r2018.04.23" - } - }] - ) - end - end - - context "that is missing a version in its manifest and lockfile" do - let(:manifest_fixture_name) { "missing_version.toml" } - let(:lockfile_fixture_name) { "missing_version.lock" } - subject(:dependency) do - dependencies.find { |d| d.name == "github.com/caarlos0/env" } - end - - it "is filtered out" do - expect(dependency).to be_nil - end - end - - describe "with a proxy host in the name" do - let(:manifest_fixture_name) { "proxy_git_source.toml" } - let(:lockfile_fixture_name) { "proxy_git_source.lock" } - subject(:dependency) do - dependencies.find { |d| d.name == "k8s.io/apimachinery" } - end - - it "has the right details" do - expect(dependency).to be_a(Dependabot::Dependency) - expect(dependency.name).to eq("k8s.io/apimachinery") - expect(dependency.version). - to eq("cbafd24d5796966031ae904aa88e2436a619ae8a") - expect(dependency.requirements).to eq( - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/kubernetes/apimachinery", - branch: "master", - ref: nil - } - }] - ) - end - - context "that returns a 404" do - let(:manifest_fixture_name) { "proxy_git_source_not_found.toml" } - let(:lockfile_fixture_name) { "proxy_git_source_not_found.lock" } - - it "raises the correct error" do - expect { parser.parse }. - to raise_error do |err| - expect(err).to be_a(Dependabot::DependencyFileNotResolvable) - expect(err.message). - to eq("dependabot.com/unknown returned a 404") - end - end - end - - context "that is not resolvable" do - let(:manifest_fixture_name) { "proxy_git_source_unresolvable.toml" } - let(:lockfile_fixture_name) { "proxy_git_source_unresolvable.lock" } - - it "raises the correct error" do - expect { parser.parse }. - to raise_error do |err| - expect(err).to be_a(Dependabot::DependencyFileNotResolvable) - expect(err.message). - to eq("Cannot detect VCS for unresolvablelkajs.com/unknown") - end - end - end - end - end - end - end -end diff --git a/dep/spec/dependabot/dep/file_updater/lockfile_updater_spec.rb b/dep/spec/dependabot/dep/file_updater/lockfile_updater_spec.rb deleted file mode 100644 index 83ae2bf5b6..0000000000 --- a/dep/spec/dependabot/dep/file_updater/lockfile_updater_spec.rb +++ /dev/null @@ -1,340 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dependency" -require "dependabot/dependency_file" -require "dependabot/dep/file_updater/lockfile_updater" - -RSpec.describe Dependabot::Dep::FileUpdater::LockfileUpdater do - let(:updater) do - described_class.new( - dependencies: [dependency], - dependency_files: dependency_files, - credentials: [{ - "type" => "git_source", - "host" => "github.com", - "username" => "x-access-token", - "password" => "token" - }] - ) - end - - let(:dependency_files) { [manifest, lockfile] } - let(:manifest) do - Dependabot::DependencyFile.new(name: "Gopkg.toml", content: manifest_body) - end - let(:lockfile) do - Dependabot::DependencyFile.new(name: "Gopkg.lock", content: lockfile_body) - end - let(:manifest_body) { fixture("gopkg_tomls", manifest_fixture_name) } - let(:lockfile_body) { fixture("gopkg_locks", lockfile_fixture_name) } - let(:manifest_fixture_name) { "bare_version.toml" } - let(:lockfile_fixture_name) { "bare_version.lock" } - - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: dependency_version, - requirements: requirements, - previous_version: dependency_previous_version, - previous_requirements: previous_requirements, - package_manager: "dep" - ) - end - let(:dependency_name) { "github.com/dgrijalva/jwt-go" } - let(:dependency_version) { "3.2.0" } - let(:dependency_previous_version) { "1.0.1" } - let(:requirements) { previous_requirements } - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: "1.0.0", - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - end - - describe "#updated_lockfile_content" do - subject(:updated_lockfile_content) { updater.updated_lockfile_content } - - context "with a released version" do - context "if no files have changed" do - let(:dependency_version) { "1.0.1" } - let(:dependency_previous_version) { "1.0.1" } - - # Ideally this would spec that the lockfile didn't change at all. That - # isn't the case because the inputs-hash changes (whilst on dep 0.4.1) - it "doesn't update the version in the lockfile" do - expect(updated_lockfile_content).to include(%(version = "v1.0.1")) - expect(updated_lockfile_content). - to include("fbcb3e4b637bdc5ef2257eb2d0fe1d914a499386") - end - end - - context "when the version has changed but the requirement hasn't" do - let(:dependency_version) { "1.0.2" } - let(:dependency_previous_version) { "1.0.1" } - - it "updates the lockfile correctly" do - expect(updated_lockfile_content).to include(%(version = "v1.0.2")) - expect(updated_lockfile_content). - to include("0987fb8fd48e32823701acdac19f5cfe47339de4") - end - end - - context "when the main.go file imports the dependency itself" do - let(:dependency_files) { [manifest, lockfile, main] } - let(:main) do - Dependabot::DependencyFile.new(name: "main.go", content: main_body) - end - let(:main_body) { fixture("go_files", "main.go") } - let(:manifest_fixture_name) { "tilda.toml" } - let(:lockfile_fixture_name) { "tilda.lock" } - - let(:dependency_name) { "github.com/jinzhu/gorm" } - let(:dependency_version) { "1.9.1" } - let(:dependency_previous_version) { "1.0" } - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: "~1.9.1", - groups: [], - source: { type: "default", source: "github.com/jinzhu/gorm" } - }] - end - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: "~1.0.0", - groups: [], - source: { type: "default", source: "github.com/jinzhu/gorm" } - }] - end - - it "updates the lockfile correctly" do - expect(updated_lockfile_content).to include(%(version = "v1.9.1")) - expect(updated_lockfile_content). - to include("6ed508ec6a4ecb3531899a69cbc746ccf65a4166") - end - end - end - - context "with a subdependency" do - let(:previous_requirements) { [] } - - context "if there are no constraints in the manifest at all" do - let(:manifest_fixture_name) { "no_constraints.toml" } - - let(:dependency_version) { "1.0.2" } - let(:dependency_previous_version) { "1.0.1" } - - it "updates the lockfile correctly" do - expect(updated_lockfile_content).to include(%(version = "v1.0.2")) - expect(updated_lockfile_content). - to include("0987fb8fd48e32823701acdac19f5cfe47339de4") - end - end - end - - context "with a git dependency" do - context "updating to the tip of a branch" do - let(:manifest_fixture_name) { "branch.toml" } - let(:lockfile_fixture_name) { "branch.lock" } - - let(:dependency_name) { "golang.org/x/text" } - let(:dependency_version) { "6f44c5a2ea40ee3593d98cdcc905cc1fdaa660e2" } - let(:dependency_previous_version) do - "7dd2c8130f5e924233f5543598300651c386d431" - end - let(:requirements) { previous_requirements } - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: nil, - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: "master", - ref: nil - } - }] - end - - context "to use a release instead" do - let(:dependency_version) { "0.3.0" } - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: "^0.3.0", - groups: [], - source: { - type: "default", - source: "golang.org/x/text" - } - }] - end - - it "updates the lockfile correctly" do - expect(updated_lockfile_content). - to include(%(version = "v0.3.0")) - expect(updated_lockfile_content). - to include(%(vision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0")) - end - end - end - - context "updating a reference" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:lockfile_fixture_name) { "tag_as_revision.lock" } - - let(:dependency_name) { "golang.org/x/text" } - let(:dependency_version) { "v0.3.0" } - let(:dependency_previous_version) { "v0.2.0" } - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: nil, - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.3.0" - } - }] - end - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: nil, - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.2.0" - } - }] - end - - it "updates the lockfile correctly" do - expect(updated_lockfile_content).to include(%(revision = "v0.3.0")) - end - - context "and it was specified as a version" do - let(:manifest_fixture_name) { "tag_as_version.toml" } - let(:lockfile_fixture_name) { "tag_as_version.lock" } - - let(:dependency_name) { "github.com/globalsign/mgo" } - let(:dependency_version) { "r2018.06.15" } - let(:dependency_previous_version) { "r2018.04.23" } - let(:requirements) do - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/globalsign/mgo", - branch: nil, - ref: "r2018.06.15" - } - }] - end - let(:previous_requirements) do - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "r2018.04.23" - } - }] - end - - it "updates the lockfile correctly" do - expect(updated_lockfile_content). - to include(%(version = "r2018.06.15")) - expect(updated_lockfile_content). - to include(%(revision = "113d3961e7311)) - end - end - - context "to use a release instead" do - let(:dependency_version) { "0.3.0" } - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: "^0.3.0", - groups: [], - source: { - type: "default", - source: "golang.org/x/text" - } - }] - end - - it "updates the lockfile correctly" do - expect(updated_lockfile_content). - to include(%(version = "v0.3.0")) - expect(updated_lockfile_content). - to include(%(vision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0")) - end - end - end - end - - context "with fsnotify as a direct dependency" do - let(:manifest_fixture_name) { "fsnotify_dep.toml" } - let(:lockfile_fixture_name) { "fsnotify_dep.lock" } - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: "~1.2.0", - groups: [], - source: { - type: "default", - source: "gopkg.in/fsnotify.v1" - } - }] - end - let(:dependency_name) { "gopkg.in/fsnotify.v1" } - let(:dependency_version) { "1.2.0" } - let(:dependency_previous_version) { "1.2.0" } - - it "updates the lockfile correctly" do - expect { updated_lockfile_content }.to_not raise_error - end - end - - context "with fsnotify as a transitive dependency" do - let(:manifest_fixture_name) { "fsnotify_trans_dep.toml" } - let(:lockfile_fixture_name) { "fsnotify_trans_dep.lock" } - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: "~1.6.0", - groups: [], - source: { - type: "default", - source: "github.com/onsi/ginkgo" - } - }] - end - let(:dependency_name) { "github.com/onsi/ginkgo" } - let(:dependency_version) { "1.7.0" } - let(:dependency_previous_version) { "1.6.0" } - - it "updates the lockfile correctly" do - expect { updated_lockfile_content }.to_not raise_error - end - end - end -end diff --git a/dep/spec/dependabot/dep/file_updater/manifest_updater_spec.rb b/dep/spec/dependabot/dep/file_updater/manifest_updater_spec.rb deleted file mode 100644 index 002df0e518..0000000000 --- a/dep/spec/dependabot/dep/file_updater/manifest_updater_spec.rb +++ /dev/null @@ -1,234 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dependency" -require "dependabot/dependency_file" -require "dependabot/dep/file_updater/manifest_updater" - -RSpec.describe Dependabot::Dep::FileUpdater::ManifestUpdater do - let(:updater) do - described_class.new( - manifest: manifest, - dependencies: [dependency] - ) - end - - let(:manifest) do - Dependabot::DependencyFile.new(name: "Gopkg.toml", content: manifest_body) - end - let(:manifest_body) { fixture("gopkg_tomls", manifest_fixture_name) } - let(:manifest_fixture_name) { "bare_version.toml" } - - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: dependency_version, - requirements: requirements, - previous_version: dependency_previous_version, - previous_requirements: previous_requirements, - package_manager: "dep" - ) - end - let(:dependency_name) { "github.com/dgrijalva/jwt-go" } - let(:dependency_version) { "3.2.0" } - let(:dependency_previous_version) { "1.0.1" } - let(:requirements) { previous_requirements } - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: "1.0.0", - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - end - - describe "#updated_manifest_content" do - subject(:updated_manifest_content) { updater.updated_manifest_content } - - context "if no files have changed" do - it { is_expected.to eq(manifest.content) } - end - - context "when the requirement has changed" do - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: ">= 1.0.0, < 4.0.0", - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - end - - it { is_expected.to include(%(version = ">= 1.0.0, < 4.0.0")) } - end - - context "when the requirement in the manifest has been deleted" do - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: nil, - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - end - - it { is_expected.to end_with(%(name = "github.com/dgrijalva/jwt-go"\n)) } - end - - context "when a requirement is being added" do - let(:manifest_fixture_name) { "no_version.toml" } - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: nil, - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - end - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: ">= 1.0.0, < 4.0.0", - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - end - - it "includes the new requirement" do - expect(updated_manifest_content). - to end_with(" name = \"github.com/dgrijalva/jwt-go\"\n"\ - " version = \">= 1.0.0, < 4.0.0\"\n") - end - end - - context "when the tag in the manifest has changed" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:dependency_name) { "golang.org/x/text" } - let(:dependency_version) { "v0.3.0" } - let(:dependency_previous_version) { "v0.2.0" } - let(:requirements) do - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.3.0" - } - }] - end - let(:previous_requirements) do - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.2.0" - } - }] - end - - it "includes the new tag" do - expect(updated_manifest_content).to include(%(revision = "v0.3.0")) - end - - context "and it was specified as a version" do - let(:manifest_fixture_name) { "tag_as_version.toml" } - let(:dependency_name) { "github.com/globalsign/mgo" } - let(:dependency_version) { "r2018.06.15" } - let(:dependency_previous_version) { "r2018.04.23" } - let(:requirements) do - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/globalsign/mgo", - branch: nil, - ref: "r2018.06.15" - } - }] - end - let(:previous_requirements) do - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "r2018.04.23" - } - }] - end - - it "includes the new tag" do - expect(updated_manifest_content). - to include( - " name = \"github.com/globalsign/mgo\"\n"\ - " version = \"r2018.06.15\"\n\n" - ) - end - end - end - - context "when switching from a git revision to a release" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:dependency_name) { "golang.org/x/text" } - let(:dependency_version) { "0.3.0" } - let(:dependency_previous_version) { "v0.2.0" } - let(:requirements) do - [{ - requirement: "^0.3.0", - file: "Gopkg.toml", - groups: [], - source: { - type: "default", - source: "golang.org/x/text" - } - }] - end - let(:previous_requirements) do - [{ - requirement: nil, - file: "Gopkg.toml", - groups: [], - source: { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.2.0" - } - }] - end - - it "includes the new tag" do - expect(updated_manifest_content). - to end_with(" name = \"golang.org/x/text\"\n"\ - " version = \"^0.3.0\"\n") - end - end - end -end diff --git a/dep/spec/dependabot/dep/file_updater_spec.rb b/dep/spec/dependabot/dep/file_updater_spec.rb deleted file mode 100644 index 304316c18a..0000000000 --- a/dep/spec/dependabot/dep/file_updater_spec.rb +++ /dev/null @@ -1,117 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dependency" -require "dependabot/dependency_file" -require "dependabot/dep/file_updater" -require_common_spec "file_updaters/shared_examples_for_file_updaters" - -RSpec.describe Dependabot::Dep::FileUpdater do - it_behaves_like "a dependency file updater" - - let(:updater) do - described_class.new( - dependency_files: files, - dependencies: [dependency], - credentials: [{ - "type" => "git_source", - "host" => "github.com" - }] - ) - end - - let(:files) { [manifest, lockfile] } - let(:manifest) do - Dependabot::DependencyFile.new(name: "Gopkg.toml", content: manifest_body) - end - let(:lockfile) do - Dependabot::DependencyFile.new(name: "Gopkg.lock", content: lockfile_body) - end - let(:manifest_body) { fixture("gopkg_tomls", manifest_fixture_name) } - let(:lockfile_body) { fixture("gopkg_locks", lockfile_fixture_name) } - let(:manifest_fixture_name) { "bare_version.toml" } - let(:lockfile_fixture_name) { "bare_version.lock" } - - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: dependency_version, - requirements: requirements, - previous_version: dependency_previous_version, - previous_requirements: previous_requirements, - package_manager: "dep" - ) - end - let(:dependency_name) { "github.com/dgrijalva/jwt-go" } - let(:dependency_version) { "3.2.0" } - let(:dependency_previous_version) { "1.0.1" } - let(:requirements) { previous_requirements } - let(:previous_requirements) do - [{ - file: "Gopkg.toml", - requirement: "1.0.0", - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - end - let(:tmp_path) { Dependabot::Utils::BUMP_TMP_DIR_PATH } - - before { Dir.mkdir(tmp_path) unless Dir.exist?(tmp_path) } - - describe "#updated_dependency_files" do - subject(:updated_files) { updater.updated_dependency_files } - - it "doesn't store the files permanently, and returns DependencyFiles" do - expect { updated_files }.to_not(change { Dir.entries(tmp_path) }) - updated_files.each { |f| expect(f).to be_a(Dependabot::DependencyFile) } - end - - it { expect { updated_files }.to_not output.to_stdout } - - context "without a lockfile" do - let(:files) { [manifest] } - - context "if no files have changed" do - it "raises a helpful error" do - expect { updater.updated_dependency_files }. - to raise_error("No files changed!") - end - end - - context "when the requirement in the manifest has changed" do - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: ">= 1.0.0, < 4.0.0", - groups: [], - source: { - type: "default", - source: "github.com/dgrijalva/jwt-go" - } - }] - end - - its(:length) { is_expected.to eq(1) } - - describe "the updated manifest" do - subject(:updated_manifest_content) do - updated_files.find { |f| f.name == "Gopkg.toml" }.content - end - - it "includes the new requirement" do - expect(described_class::ManifestUpdater). - to receive(:new). - with(dependencies: [dependency], manifest: manifest). - and_call_original - - expect(updated_manifest_content). - to include(%(version = ">= 1.0.0, < 4.0.0")) - end - end - end - end - end -end diff --git a/dep/spec/dependabot/dep/metadata_finder_spec.rb b/dep/spec/dependabot/dep/metadata_finder_spec.rb deleted file mode 100644 index a716c092b7..0000000000 --- a/dep/spec/dependabot/dep/metadata_finder_spec.rb +++ /dev/null @@ -1,79 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dependency" -require "dependabot/dep/metadata_finder" -require_common_spec "metadata_finders/shared_examples_for_metadata_finders" - -RSpec.describe Dependabot::Dep::MetadataFinder do - it_behaves_like "a dependency metadata finder" - - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: "2.1.0", - requirements: requirements, - package_manager: "dep" - ) - end - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: "v2.1.0", - groups: [], - source: source - }] - end - subject(:finder) do - described_class.new(dependency: dependency, credentials: credentials) - end - let(:credentials) do - [{ - "type" => "git_source", - "host" => "github.com", - "username" => "x-access-token", - "password" => "token" - }] - end - let(:dependency_name) { "github.com/satori/go.uuid" } - let(:source) { nil } - - describe "#source_url" do - subject(:source_url) { finder.source_url } - - context "with no requirements (i.e., a subdependency)" do - let(:requirements) { [] } - - it { is_expected.to eq("https://github.com/satori/go.uuid") } - - context "for a golang.org project" do - let(:dependency_name) { "golang.org/x/text" } - it { is_expected.to eq("https://github.com/golang/text") } - end - end - - context "with default requirements" do - let(:source) do - { - type: "default", - source: "github.com/alias/go.uuid" - } - end - - it { is_expected.to eq("https://github.com/alias/go.uuid") } - end - - context "with git requirements" do - let(:source) do - { - type: "git", - url: "https://github.com/alias/go.uuid", - branch: "master", - ref: nil - } - end - - it { is_expected.to eq("https://github.com/alias/go.uuid") } - end - end -end diff --git a/dep/spec/dependabot/dep/path_converter_spec.rb b/dep/spec/dependabot/dep/path_converter_spec.rb deleted file mode 100644 index 274d108ff6..0000000000 --- a/dep/spec/dependabot/dep/path_converter_spec.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dep/path_converter" - -RSpec.describe Dependabot::Dep::PathConverter do - describe ".git_url_for_path" do - subject { described_class.git_url_for_path(path) } - - let(:path) { "gopkg.in/guregu/null.v3" } - - context "with a path that is immediately recognisable as a git source" do - let(:path) { "github.com/drewolson/testflight" } - it { is_expected.to eq("https://github.com/drewolson/testflight") } - end - - context "with a golang.org path" do - let(:path) { "golang.org/x/tools" } - it { is_expected.to eq("https://github.com/golang/tools") } - end - - context "with a path that ends in .git" do - let(:path) { "git.fd.io/govpp.git" } - it { is_expected.to eq("https://git.fd.io/govpp.git") } - end - - context "with a vanity URL that needs to be fetched" do - let(:path) { "k8s.io/apimachinery" } - it { is_expected.to eq("https://github.com/kubernetes/apimachinery") } - end - - context "with a vanity URL that redirects" do - let(:path) { "code.cloudfoundry.org/bytefmt" } - it { is_expected.to eq("https://github.com/cloudfoundry/bytefmt") } - end - - context "with a path that already includes a scheme" do - let(:path) { "https://github.com/drewolson/testflight" } - it { is_expected.to eq("https://github.com/drewolson/testflight") } - end - end - - describe ".git_url_for_path_without_go_helper" do - subject { described_class.git_url_for_path_without_go_helper(path) } - - let(:path) { "gopkg.in/guregu/null.v3" } - - context "with a path that is immediately recognisable as a git source" do - let(:path) { "github.com/drewolson/testflight" } - it { is_expected.to eq("https://github.com/drewolson/testflight") } - end - - context "with a golang.org path" do - let(:path) { "golang.org/x/tools" } - it { is_expected.to eq("https://github.com/golang/tools") } - end - - context "with a path that ends in .git" do - let(:path) { "git.fd.io/govpp.git" } - it { is_expected.to eq("https://git.fd.io/govpp.git") } - end - - context "with a vanity URL that needs to be fetched" do - let(:path) { "k8s.io/apimachinery" } - - before do - stub_request(:get, "https://k8s.io/apimachinery?go-get=1"). - to_return(status: 200, body: vanity_response) - end - let(:vanity_response) do - fixture("repo_responses", "k8s_io_apimachinery.html") - end - - it { is_expected.to eq("https://github.com/kubernetes/apimachinery") } - - context "and returns a git source hosted with an unknown provider" do - let(:vanity_response) do - fixture("repo_responses", "unknown_git_source.html") - - it { is_expected.to eq("https://sf.com/kubernetes/apimachinery") } - end - end - end - end -end diff --git a/dep/spec/dependabot/dep/requirement_spec.rb b/dep/spec/dependabot/dep/requirement_spec.rb deleted file mode 100644 index 31aa649d47..0000000000 --- a/dep/spec/dependabot/dep/requirement_spec.rb +++ /dev/null @@ -1,228 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dep/requirement" - -RSpec.describe Dependabot::Dep::Requirement do - subject(:requirement) { described_class.new(requirement_string) } - let(:requirement_string) { ">=1.0.0" } - - describe ".new" do - it { is_expected.to be_a(described_class) } - - context "with a blank string" do - let(:requirement_string) { "" } - it { is_expected.to eq(described_class.new(">= 0")) } - end - - context "with a 'v' prefix" do - let(:requirement_string) { ">=v1.0.0" } - it { is_expected.to eq(described_class.new(">= v1.0.0")) } - end - - context "with an 'incompatible' suffix" do - let(:requirement_string) { ">=v1.0.0+incompatible" } - it { is_expected.to eq(described_class.new(">= v1.0.0+incompatible")) } - end - - context "with a pre-release" do - let(:requirement_string) { "4.0.0-beta3" } - it "preserves the pre-release formatting" do - expect(requirement.requirements.first.last.to_s).to eq("4.0.0-beta3") - end - end - - describe "wildcards" do - context "with only a *" do - let(:requirement_string) { "*" } - it { is_expected.to eq(described_class.new(">= 0")) } - end - - context "with a 1.*" do - let(:requirement_string) { "1.*" } - it { is_expected.to eq(described_class.new(">= 1.0, < 2.0.0.a")) } - - context "with two wildcards" do - let(:requirement_string) { "1.*.*" } - it { is_expected.to eq(described_class.new(">= 1.0.0, < 2.0.0.a")) } - end - - context "for a pre-1.0.0 release" do - let(:requirement_string) { "0.*" } - it { is_expected.to eq(described_class.new(">= 0.0, < 1.0.0.a")) } - end - end - - context "with a 1.*.1" do - let(:requirement_string) { "1.*.1" } - it { is_expected.to eq(described_class.new(">= 1.0.0, < 2.0.0.a")) } - end - - context "with a 1.1.*" do - let(:requirement_string) { "1.1.*" } - it { is_expected.to eq(described_class.new(">= 1.1.0", "< 2.0.0.a")) } - - context "prefixed with a caret" do - let(:requirement_string) { "^1.1.*" } - it { is_expected.to eq(described_class.new(">= 1.1.0", "< 2.0.0.a")) } - - context "for a pre-1.0.0 release" do - let(:requirement_string) { "^0.0.*" } - it do - is_expected.to eq(described_class.new(">= 0.0.0", "< 1.0.0.a")) - end - - context "with a pre-release specifier" do - let(:requirement_string) { "^0.0.*-alpha" } - - it "maintains a pre-release specifier" do - expect(requirement). - to eq(described_class.new(">= 0.0.0-a", "< 1.0.0.a")) - end - end - end - end - - context "prefixed with a ~" do - let(:requirement_string) { "~1.1.x" } - it { is_expected.to eq(described_class.new("~> 1.1.0")) } - - context "with two wildcards" do - let(:requirement_string) { "~1.x.x" } - it { is_expected.to eq(described_class.new("~> 1.0")) } - end - end - - context "prefixed with a <" do - let(:requirement_string) { "<1.1.X" } - it { is_expected.to eq(described_class.new("< 1.2.0")) } - end - end - end - - context "with no specifier" do - let(:requirement_string) { "1.1.0" } - it { is_expected.to eq(described_class.new(">= 1.1.0", "< 2.0.0.a")) } - - context "and a v prefix" do - let(:requirement_string) { "v1.1.0" } - it { is_expected.to eq(described_class.new(">= 1.1.0", "< 2.0.0.a")) } - end - end - - context "with a caret version" do - context "specified to 3 dp" do - let(:requirement_string) { "^1.2.3" } - it { is_expected.to eq(described_class.new(">= 1.2.3", "< 2.0.0.a")) } - - context "with a zero major" do - let(:requirement_string) { "^0.2.3" } - it { is_expected.to eq(described_class.new(">= 0.2.3", "< 1.0.0.a")) } - - context "and a zero minor" do - let(:requirement_string) { "^0.0.3" } - it do - is_expected.to eq(described_class.new(">= 0.0.3", "< 1.0.0.a")) - end - end - end - end - - context "specified to 2 dp" do - let(:requirement_string) { "^1.2" } - it { is_expected.to eq(described_class.new(">= 1.2", "< 2.0.0.a")) } - - context "with a zero major" do - let(:requirement_string) { "^0.2" } - it { is_expected.to eq(described_class.new(">= 0.2", "< 1.0.0.a")) } - - context "and a zero minor" do - let(:requirement_string) { "^0.0" } - it { is_expected.to eq(described_class.new(">= 0.0", "< 1.0.0.a")) } - end - end - end - - context "specified to 1 dp" do - let(:requirement_string) { "^1" } - it { is_expected.to eq(described_class.new(">= 1", "< 2.0.0.a")) } - - context "with a zero major" do - let(:requirement_string) { "^0" } - it { is_expected.to eq(described_class.new(">= 0", "< 1.0.0.a")) } - end - end - end - - context "with a ~ version" do - context "specified to 3 dp" do - let(:requirement_string) { "~1.5.1" } - it { is_expected.to eq(described_class.new("~> 1.5.1")) } - end - - context "specified to 2 dp" do - let(:requirement_string) { "~1.5" } - it { is_expected.to eq(described_class.new("~> 1.5.0")) } - end - - context "specified to 1 dp" do - let(:requirement_string) { "~1" } - it { is_expected.to eq(described_class.new("~> 1.0")) } - end - end - - context "with a > version specified" do - let(:requirement_string) { ">1.5.1" } - it { is_expected.to eq(Gem::Requirement.new("> 1.5.1")) } - end - - context "with a range literal specified" do - let(:requirement_string) { "1.1.1 - 1.2.0" } - it { is_expected.to eq(Gem::Requirement.new(">= 1.1.1", "<= 1.2.0")) } - end - - context "with an = version specified" do - let(:requirement_string) { "=1.5" } - it { is_expected.to eq(Gem::Requirement.new("1.5")) } - end - - context "with a != version specified" do - let(:requirement_string) { "!=1.5" } - it { is_expected.to eq(Gem::Requirement.new("!=1.5")) } - end - - context "with an ~> version specified" do - let(:requirement_string) { "~> 1.5.1" } - its(:to_s) { is_expected.to eq(described_class.new("~> 1.5.1").to_s) } - end - - context "with a comma separated list" do - let(:requirement_string) { ">1.5.1, < 2.0.0" } - it { is_expected.to eq(Gem::Requirement.new("> 1.5.1", "< 2.0.0")) } - end - end - - describe ".requirements_array" do - subject(:requirements) do - described_class.requirements_array(requirement_string) - end - - context "with a single requirement" do - let(:requirement_string) { ">=1.0.0" } - it { is_expected.to eq([described_class.new(">= 1.0.0")]) } - end - - context "with an OR requirement" do - let(:requirement_string) { "^1.1.0 || ^2.1.0" } - - it "returns an array of requirements" do - expect(requirements).to match_array( - [ - described_class.new(">= 1.1.0", "< 2.0.0.a"), - described_class.new(">= 2.1.0", "< 3.0.0.a") - ] - ) - end - end - end -end diff --git a/dep/spec/dependabot/dep/update_checker/file_preparer_spec.rb b/dep/spec/dependabot/dep/update_checker/file_preparer_spec.rb deleted file mode 100644 index 8a6d89818c..0000000000 --- a/dep/spec/dependabot/dep/update_checker/file_preparer_spec.rb +++ /dev/null @@ -1,287 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dependency" -require "dependabot/dep/update_checker/file_preparer" - -RSpec.describe Dependabot::Dep::UpdateChecker::FilePreparer do - let(:preparer) do - described_class.new( - dependency_files: dependency_files, - dependency: dependency, - unlock_requirement: unlock_requirement, - remove_git_source: remove_git_source, - replacement_git_pin: replacement_git_pin, - latest_allowable_version: latest_allowable_version - ) - end - - let(:dependency_files) { [manifest, lockfile] } - let(:unlock_requirement) { true } - let(:remove_git_source) { false } - let(:replacement_git_pin) { nil } - let(:latest_allowable_version) { nil } - - let(:manifest) do - Dependabot::DependencyFile.new( - name: "Gopkg.toml", - content: fixture("gopkg_tomls", manifest_fixture_name) - ) - end - let(:lockfile) do - Dependabot::DependencyFile.new( - name: "Gopkg.lock", - content: fixture("gopkg_locks", lockfile_fixture_name) - ) - end - let(:manifest_fixture_name) { "bare_version.toml" } - let(:lockfile_fixture_name) { "bare_version.lock" } - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: dependency_version, - requirements: requirements, - package_manager: "dep" - ) - end - let(:requirements) do - [{ - file: "Gopkg.toml", - requirement: string_req, - groups: [], - source: source - }] - end - let(:dependency_name) { "github.com/dgrijalva/jwt-go" } - let(:source) { { type: "default", source: "github.com/dgrijalva/jwt-go" } } - let(:dependency_version) { "1.0.1" } - let(:string_req) { "1.0.0" } - - describe "#prepared_dependency_files" do - subject(:prepared_dependency_files) { preparer.prepared_dependency_files } - - its(:length) { is_expected.to eq(2) } - - describe "the updated Gopkg.toml" do - subject(:prepared_manifest_file) do - prepared_dependency_files.find { |f| f.name == "Gopkg.toml" } - end - - context "with unlock_requirement set to false" do - let(:unlock_requirement) { false } - - it "doesn't update the requirement" do - expect(prepared_manifest_file.content).to include('version = "1.0.0"') - end - end - - context "with unlock_requirement set to true" do - let(:unlock_requirement) { true } - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('version = ">= 1.0.1"') - end - - context "without a lockfile" do - let(:dependency_files) { [manifest] } - let(:dependency_version) { nil } - let(:string_req) { "1.0.0" } - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('version = ">= 1.0.0"') - end - end - - context "with a blank requirement" do - let(:manifest_fixture_name) { "no_version.toml" } - let(:lockfile_fixture_name) { "no_version.lock" } - let(:string_req) { nil } - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('version = ">= 1.0.1"') - end - - context "and a latest_allowable_version" do - let(:latest_allowable_version) { Gem::Version.new("1.6.0") } - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('version = ">= 1.0.1, <= 1.6.0"') - end - - context "that is lower than the current lower bound" do - let(:latest_allowable_version) { Gem::Version.new("0.1.0") } - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('version = ">= 1.0.1"') - end - end - end - - context "without a lockfile" do - let(:dependency_files) { [manifest] } - let(:dependency_version) { nil } - let(:string_req) { nil } - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('version = ">= 0"') - end - end - end - - context "with a dependency on fsnotify" do - let(:manifest_fixture_name) { "fsnotify_dep.toml" } - let(:lockfile_fixture_name) { "fsnotify_dep.lock" } - let(:dependency_name) { "gopkg.in/fsnotify.v1" } - let(:dependency_version) { "1.2.0" } - let(:string_req) { "~1.2.0" } - let(:source) do - { type: "default", source: "gopkg.in/fsnotify.v1" } - end - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('source = "gopkg.in/fsnotify/fsnotify.v1"') - end - end - - context "with a git requirement" do - context "with a branch" do - let(:manifest_fixture_name) { "branch.toml" } - let(:lockfile_fixture_name) { "branch.lock" } - let(:dependency_name) { "golang.org/x/text" } - let(:dependency_version) do - "7dd2c8130f5e924233f5543598300651c386d431" - end - let(:string_req) { nil } - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: "master", - ref: nil - } - end - - it "doesn't update the manifest" do - expect(prepared_manifest_file.content). - to_not include("version =") - end - - context "that we want to remove" do - let(:remove_git_source) { true } - - it "removes the git source" do - expect(prepared_manifest_file.content). - to include('version = ">= 0"') - expect(prepared_manifest_file.content). - to_not include("branch = ") - end - end - end - - context "with a tag" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:lockfile_fixture_name) { "tag_as_revision.lock" } - let(:dependency_version) { "v0.2.0" } - let(:dependency_name) { "golang.org/x/text" } - let(:string_req) { nil } - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.2.0" - } - end - - context "without a replacement tag" do - let(:replacement_git_pin) { nil } - - it "doesn't update the tag" do - expect(prepared_manifest_file.content). - to include('revision = "v0.2.0"') - expect(prepared_manifest_file.content). - to_not include("version =") - end - - context "when we want to remove the tag" do - let(:remove_git_source) { true } - - it "removes the git source" do - expect(prepared_manifest_file.content). - to include('version = ">= 0"') - expect(prepared_manifest_file.content). - to_not include("revision = ") - end - end - end - - context "with a replacement tag" do - let(:replacement_git_pin) { "v1.0.0" } - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('revision = "v1.0.0"') - expect(prepared_manifest_file.content). - to_not include("version =") - end - end - - context "specified as a version" do - let(:manifest_fixture_name) { "tag_as_version.toml" } - let(:lockfile_fixture_name) { "tag_as_version.lock" } - let(:dependency_version) { "r2018.06.15" } - let(:dependency_name) { "github.com/globalsign/mgo" } - let(:string_req) { nil } - let(:source) do - { - type: "git", - url: "https://github.com/globalsign/mgo", - branch: nil, - ref: "r2018.04.23" - } - end - - context "with a replacement tag" do - let(:replacement_git_pin) { "r2018.06.15" } - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('version = "r2018.06.15"') - end - - context "and a non-tag version" do - let(:lockfile_fixture_name) { "tag_as_version_old.lock" } - let(:dependency_version) do - "113d3961e7311526535a1ef7042196563d442761" - end - - it "updates the requirement" do - expect(prepared_manifest_file.content). - to include('version = "r2018.06.15"') - end - end - end - end - end - end - end - end - - describe "the updated lockfile" do - subject { prepared_dependency_files.find { |f| f.name == "Gopkg.lock" } } - it { is_expected.to eq(lockfile) } - end - - context "without a lockfile" do - let(:dependency_files) { [manifest] } - its(:length) { is_expected.to eq(1) } - end - end -end diff --git a/dep/spec/dependabot/dep/update_checker/latest_version_finder_spec.rb b/dep/spec/dependabot/dep/update_checker/latest_version_finder_spec.rb deleted file mode 100644 index 9802065bbf..0000000000 --- a/dep/spec/dependabot/dep/update_checker/latest_version_finder_spec.rb +++ /dev/null @@ -1,206 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dep/update_checker/latest_version_finder" - -RSpec.describe Dependabot::Dep::UpdateChecker::LatestVersionFinder do - let(:finder) do - described_class.new( - dependency: dependency, - dependency_files: dependency_files, - credentials: credentials, - ignored_versions: ignored_versions - ) - end - - let(:ignored_versions) { [] } - let(:credentials) do - [{ - "type" => "git_source", - "host" => "github.com", - "username" => "x-access-token", - "password" => "token" - }] - end - let(:dependency_files) do - [ - Dependabot::DependencyFile.new( - name: "Gopkg.toml", - content: fixture("gopkg_tomls", manifest_fixture_name) - ), - Dependabot::DependencyFile.new( - name: "Gopkg.lock", - content: fixture("gopkg_locks", lockfile_fixture_name) - ) - ] - end - let(:manifest_fixture_name) { "no_version.toml" } - let(:lockfile_fixture_name) { "no_version.lock" } - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: dependency_version, - requirements: requirements, - package_manager: "dep" - ) - end - let(:requirements) do - [{ file: "Gopkg.toml", requirement: req_str, groups: [], source: source }] - end - let(:dependency_name) { "golang.org/x/text" } - let(:dependency_version) { "0.2.0" } - let(:req_str) { nil } - let(:source) { { type: "default", source: "golang.org/x/text" } } - - let(:service_pack_url) do - "https://github.com/golang/text.git/info/refs"\ - "?service=git-upload-pack" - end - before do - stub_request(:get, service_pack_url). - to_return( - status: 200, - body: fixture("git", "upload_packs", upload_pack_fixture), - headers: { - "content-type" => "application/x-git-upload-pack-advertisement" - } - ) - end - let(:upload_pack_fixture) { "text" } - - describe "#latest_version" do - subject { finder.latest_version } - it { is_expected.to eq(Gem::Version.new("0.3.0")) } - - context "with a sub-dependency" do - let(:requirements) { [] } - it { is_expected.to eq(Gem::Version.new("0.3.0")) } - end - - context "with a git source" do - context "that specifies a branch" do - let(:manifest_fixture_name) { "branch.toml" } - let(:lockfile_fixture_name) { "branch.lock" } - - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: "master", - ref: nil - } - end - - before do - repo_url = "https://api.github.com/repos/golang/text" - stub_request(:get, repo_url + "/compare/v0.3.0...master"). - to_return( - status: 200, - body: commit_compare_response, - headers: { "Content-Type" => "application/json" } - ) - end - - context "that is behind the latest release" do - let(:commit_compare_response) do - fixture("github", "commit_compare_behind.json") - end - - it { is_expected.to eq(Gem::Version.new("0.3.0")) } - end - - context "that is diverged from the latest release" do - let(:commit_compare_response) do - fixture("github", "commit_compare_diverged.json") - end - - it { is_expected.to eq("0605a8320aceb4207a5fb3521281e17ec2075476") } - end - end - - context "that specifies a tag" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:lockfile_fixture_name) { "tag_as_revision.lock" } - - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.2.0" - } - end - - before do - repo_url = "https://api.github.com/repos/golang/text" - stub_request(:get, repo_url + "/compare/v0.3.0...v0.2.0"). - to_return( - status: 200, - body: commit_compare_response, - headers: { "Content-Type" => "application/json" } - ) - end - let(:commit_compare_response) do - fixture("github", "commit_compare_behind.json") - end - - it { is_expected.to eq(Gem::Version.new("0.3.0")) } - - context "specified as a version (and not version-like)" do - let(:manifest_fixture_name) { "tag_as_version.toml" } - let(:lockfile_fixture_name) { "tag_as_version.lock" } - let(:dependency_name) { "github.com/globalsign/mgo" } - let(:source) do - { - type: "git", - url: "https://github.com/globalsign/mgo", - branch: nil, - ref: "r2018.04.23" - } - end - let(:req_str) { nil } - let(:dependency_version) { "r2018.04.23" } - - let(:service_pack_url) do - "https://github.com/globalsign/mgo.git/info/refs"\ - "?service=git-upload-pack" - end - let(:upload_pack_fixture) { "mgo" } - - it { is_expected.to eq("r2018.06.15") } - - context "when the current dependency version is a SHA" do - let(:dependency_version) do - "efe0945164a7e582241f37ae8983c075f8f2e870" - end - - it "returns the updated tag commit sha" do - expect(finder.latest_version). - to eq("113d3961e7311526535a1ef7042196563d442761") - end - end - end - - context "that is up-to-date" do - let(:commit_compare_response) do - fixture("github", "commit_compare_identical.json") - end - - # Still make an update as we wish to switch source declaration style. - # (Could decide not to do this if it causes trouble.) - it { is_expected.to eq(Gem::Version.new("0.3.0")) } - end - - context "when the new version isn't a direct update to the old one" do - let(:commit_compare_response) do - fixture("github", "commit_compare_diverged.json") - end - - # Still make an update as we wish to switch source declaration style. - # (Could decide not to do this if it causes trouble.) - it { is_expected.to eq("v0.3.0") } - end - end - end - end -end diff --git a/dep/spec/dependabot/dep/update_checker/requirements_updater_spec.rb b/dep/spec/dependabot/dep/update_checker/requirements_updater_spec.rb deleted file mode 100644 index 4dbb63dce4..0000000000 --- a/dep/spec/dependabot/dep/update_checker/requirements_updater_spec.rb +++ /dev/null @@ -1,595 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dep/update_checker/requirements_updater" - -RSpec.describe Dependabot::Dep::UpdateChecker::RequirementsUpdater do - let(:updater) do - described_class.new( - requirements: requirements, - updated_source: updated_source, - update_strategy: update_strategy, - latest_version: latest_version, - latest_resolvable_version: latest_resolvable_version - ) - end - - let(:requirements) { [manifest_req] } - let(:updated_source) { nil } - let(:update_strategy) { :widen_ranges } - let(:manifest_req) do - { - file: "Gopkg.toml", - requirement: manifest_req_string, - groups: [], - source: nil - } - end - let(:manifest_req_string) { "^1.4.0" } - - let(:latest_version) { "1.8.0" } - let(:latest_resolvable_version) { "1.5.0" } - let(:version_class) { Dependabot::Dep::Version } - - describe "#updated_requirements" do - subject { updater.updated_requirements.first } - - specify { expect(updater.updated_requirements.count).to eq(1) } - - let(:manifest_req_string) { "^1.0.0" } - let(:latest_resolvable_version) { nil } - - context "when there is no resolvable version" do - let(:latest_resolvable_version) { nil } - its([:requirement]) { is_expected.to eq(manifest_req_string) } - end - - context "with a git dependency" do - let(:latest_resolvable_version) { Gem::Version.new("1.5.0") } - let(:manifest_req) do - { - file: "Gopkg.toml", - requirement: manifest_req_string, - groups: [], - source: { - type: "git", - url: "https://github.com/jonschlinkert/is-number", - branch: nil, - ref: "2.0.0" - } - } - end - let(:updated_source) do - { - type: "git", - url: "https://github.com/jonschlinkert/is-number", - branch: nil, - ref: "2.1.0" - } - end - - context "with no requirement" do - let(:manifest_req_string) { nil } - - it "updates the source" do - expect(updater.updated_requirements). - to eq( - [{ - file: "Gopkg.toml", - requirement: nil, - groups: [], - source: { - type: "git", - url: "https://github.com/jonschlinkert/is-number", - branch: nil, - ref: "2.1.0" - } - }] - ) - end - - context "updating to use releases" do - let(:updated_source) do - { - type: "default", - source: "golang.org/x/text" - } - end - - it "updates the source and requirement" do - expect(updater.updated_requirements). - to eq( - [{ - file: "Gopkg.toml", - requirement: "^1.5.0", - groups: [], - source: { - type: "default", - source: "golang.org/x/text" - } - }] - ) - end - end - end - end - - context "for a widen_ranges update" do - let(:update_strategy) { :widen_ranges } - - context "when there is a resolvable version" do - let(:latest_resolvable_version) { Gem::Version.new("1.5.0") } - - context "and a full version was previously specified" do - let(:manifest_req_string) { "1.2.3" } - its([:requirement]) { is_expected.to eq("1.2.3") } - - context "that needs to be updated" do - let(:manifest_req_string) { "0.1.3" } - its([:requirement]) { is_expected.to eq(">= 0.1.3, < 2.0.0") } - end - end - - context "and v-prefix was previously used" do - let(:manifest_req_string) { "v1.2.3" } - its([:requirement]) { is_expected.to eq("v1.2.3") } - - context "that needs to be updated" do - let(:manifest_req_string) { "v0.1.3" } - its([:requirement]) { is_expected.to eq(">= 0.1.3, < 2.0.0") } - end - end - - context "and a partial version was previously specified" do - let(:manifest_req_string) { "0.1" } - its([:requirement]) { is_expected.to eq(">= 0.1, < 2.0") } - end - - context "and only the major part was previously specified" do - let(:manifest_req_string) { "1" } - let(:latest_resolvable_version) { Gem::Version.new("4.5.0") } - its([:requirement]) { is_expected.to eq(">= 1, < 5") } - end - - context "and the new version has fewer digits than the old one" do - let(:manifest_req_string) { "1.1.0.1" } - its([:requirement]) { is_expected.to eq("1.1.0.1") } - end - - context "and the new version has much fewer digits than the old one" do - let(:manifest_req_string) { "1.1.0.1" } - let(:latest_resolvable_version) { Gem::Version.new("4") } - its([:requirement]) { is_expected.to eq(">= 1.1.0.1, < 5.0.0.0") } - end - - context "with a < condition" do - let(:manifest_req_string) { "< 1.2.0" } - its([:requirement]) { is_expected.to eq("< 1.6.0") } - end - - context "and a - was previously specified" do - let(:manifest_req_string) { "1.2.3 - 1.4.0" } - its([:requirement]) { is_expected.to eq("1.2.3 - 1.6.0") } - - context "with a pre-release version" do - let(:manifest_req_string) { "1.2.3-rc1 - 1.4.0" } - its([:requirement]) { is_expected.to eq("1.2.3-rc1 - 1.6.0") } - end - end - - context "and a pre-release was previously specified" do - let(:manifest_req_string) { "1.2.3-rc1" } - its([:requirement]) { is_expected.to eq("1.2.3-rc1") } - - context "when the version needs updating" do - let(:latest_resolvable_version) { Gem::Version.new("2.5.0") } - its([:requirement]) { is_expected.to eq(">= 1.2.3-rc1, < 3.0.0") } - end - end - - context "and a caret was previously specified" do - context "that the latest version satisfies" do - let(:manifest_req_string) { "^1.2.3" } - its([:requirement]) { is_expected.to eq("^1.2.3") } - end - - context "that the latest version does not satisfy" do - let(:manifest_req_string) { "^0.8.0" } - its([:requirement]) { is_expected.to eq(">= 0.8.0, < 2.0.0") } - end - - context "including a pre-release" do - let(:manifest_req_string) { "^1.2.3-rc1" } - its([:requirement]) { is_expected.to eq("^1.2.3-rc1") } - end - - context "updating to a pre-release of a new major version" do - let(:manifest_req_string) { "^1.0.0-beta1" } - let(:latest_resolvable_version) { version_class.new("2.0.0-alpha") } - its([:requirement]) do - is_expected.to eq(">= 1.0.0-beta1, < 3.0.0") - end - end - - context "including an x" do - let(:latest_resolvable_version) { Gem::Version.new("0.0.2") } - let(:manifest_req_string) { "^0.0.x" } - its([:requirement]) { is_expected.to eq("^0.0.x") } - - context "when the range isn't covered" do - let(:latest_resolvable_version) { Gem::Version.new("1.2.0") } - its([:requirement]) { is_expected.to eq(">= 0.0.0, < 2.0.0") } - end - end - - context "on a version that is all zeros" do - let(:latest_resolvable_version) { Gem::Version.new("0.0.2") } - let(:manifest_req_string) { "^0.0.0" } - its([:requirement]) { is_expected.to eq("^0.0.0") } - end - end - - context "and an x.x was previously specified" do - let(:manifest_req_string) { "0.x.x" } - its([:requirement]) { is_expected.to eq(">= 0.0.0, < 2.0.0") } - - context "four places" do - let(:manifest_req_string) { "0.x.x-rc1" } - its([:requirement]) { is_expected.to eq(">= 0.0.0-a, < 2.0.0") } - end - end - - context "with just *" do - let(:manifest_req_string) { "*" } - its([:requirement]) { is_expected.to eq("*") } - end - - context "and a tilda was previously specified" do - let(:latest_resolvable_version) { Gem::Version.new("2.5.3") } - - context "that the latest version satisfies" do - let(:manifest_req_string) { "~2.5.1" } - its([:requirement]) { is_expected.to eq("~2.5.1") } - end - - context "that the latest version does not satisfy" do - let(:manifest_req_string) { "~2.4.1" } - its([:requirement]) { is_expected.to eq(">= 2.4.1, < 2.6.0") } - end - - context "including a pre-release" do - let(:manifest_req_string) { "~2.5.1-rc1" } - its([:requirement]) { is_expected.to eq("~2.5.1-rc1") } - end - - context "including an x" do - let(:manifest_req_string) { "~2.x.x" } - its([:requirement]) { is_expected.to eq("~2.x.x") } - - context "when the range isn't covered" do - let(:manifest_req_string) { "~2.4.x" } - its([:requirement]) { is_expected.to eq(">= 2.4.0, < 2.6.0") } - end - end - end - - context "and there were multiple specifications" do - let(:manifest_req_string) { "> 1.0.0, < 1.2.0" } - its([:requirement]) { is_expected.to eq("> 1.0.0, < 1.6.0") } - - context "already valid" do - let(:manifest_req_string) { "> 1.0.0, < 1.7.0" } - its([:requirement]) { is_expected.to eq(manifest_req_string) } - end - - context "specified with || and valid" do - let(:manifest_req_string) { "^1.0.0 || ^2.0.0" } - its([:requirement]) { is_expected.to eq(manifest_req_string) } - end - - context "that include a pre-release" do - let(:manifest_req_string) { ">=1.2.0, <1.4.0-dev" } - its([:requirement]) { is_expected.to eq(">=1.2.0, <1.6.0") } - end - end - - context "and there were multiple requirements" do - let(:requirements) { [manifest_req, other_manifest_req] } - - let(:other_manifest_req) do - { - file: "another/Gopkg.toml", - requirement: other_requirement_string, - groups: [], - source: nil - } - end - let(:manifest_req_string) { "^1.2.3" } - let(:other_requirement_string) { "^0.x.x" } - - it "updates the requirement that needs to be updated" do - expect(updater.updated_requirements).to match_array( - [ - { - file: "Gopkg.toml", - requirement: "^1.2.3", - groups: [], - source: nil - }, - { - file: "another/Gopkg.toml", - requirement: ">= 0.0.0, < 2.0.0", - groups: [], - source: nil - } - ] - ) - end - - context "for the same file" do - let(:requirements) do - [ - { - requirement: "0.1.x", - file: "Gopkg.toml", - groups: ["dependencies"], - source: nil - }, - { - requirement: "^0.1.0", - file: "Gopkg.toml", - groups: ["devDependencies"], - source: nil - } - ] - end - - it "updates both requirements" do - expect(updater.updated_requirements).to match_array( - [ - { - requirement: ">= 0.1.0, < 2.0.0", - file: "Gopkg.toml", - groups: ["dependencies"], - source: nil - }, - { - requirement: ">= 0.1.0, < 2.0.0", - file: "Gopkg.toml", - groups: ["devDependencies"], - source: nil - } - ] - ) - end - end - end - end - end - - context "for a bump_versions update" do - let(:update_strategy) { :bump_versions } - - context "when there is a resolvable version" do - let(:latest_resolvable_version) { Gem::Version.new("1.5.0") } - - context "and a full version was previously specified" do - let(:manifest_req_string) { "1.2.3" } - its([:requirement]) { is_expected.to eq("1.5.0") } - end - - context "and v-prefix was previously used" do - let(:manifest_req_string) { "v1.2.3" } - its([:requirement]) { is_expected.to eq("v1.5.0") } - end - - context "and a partial version was previously specified" do - let(:manifest_req_string) { "0.1" } - # TODO: Improve me! - its([:requirement]) { is_expected.to eq("1.5.0") } - end - - context "and only the major part was previously specified" do - let(:manifest_req_string) { "1" } - let(:latest_resolvable_version) { Gem::Version.new("4.5.0") } - # TODO: Improve me! - its([:requirement]) { is_expected.to eq("4.5.0") } - end - - context "and the new version has fewer digits than the old one" do - let(:manifest_req_string) { "1.1.0.1" } - its([:requirement]) { is_expected.to eq("1.5.0") } - end - - context "and the new version has much fewer digits than the old one" do - let(:manifest_req_string) { "1.1.0.1" } - let(:latest_resolvable_version) { Gem::Version.new("4") } - its([:requirement]) { is_expected.to eq("4") } - end - - context "with a < condition" do - let(:manifest_req_string) { "< 1.2.0" } - its([:requirement]) { is_expected.to eq("< 1.6.0") } - end - - context "and a - was previously specified" do - let(:manifest_req_string) { "1.2.3 - 1.4.0" } - its([:requirement]) { is_expected.to eq("1.2.3 - 1.6.0") } - - context "with a pre-release version" do - let(:manifest_req_string) { "1.2.3-rc1 - 1.4.0" } - its([:requirement]) { is_expected.to eq("1.2.3-rc1 - 1.6.0") } - end - end - - context "and a pre-release was previously specified" do - let(:manifest_req_string) { "1.2.3-rc1" } - its([:requirement]) { is_expected.to eq("1.5.0") } - end - - context "and a caret was previously specified" do - let(:manifest_req_string) { "^1.2.3" } - its([:requirement]) { is_expected.to eq("^1.5.0") } - - context "including a pre-release" do - let(:manifest_req_string) { "^1.2.3-rc1" } - its([:requirement]) { is_expected.to eq("^1.5.0") } - end - - context "including an x" do - let(:latest_resolvable_version) { Gem::Version.new("0.0.2") } - let(:manifest_req_string) { "^0.0.x" } - # TODO: Improve me! - its([:requirement]) { is_expected.to eq("^0.0.2") } - - context "when the range isn't covered" do - let(:latest_resolvable_version) { Gem::Version.new("1.2.0") } - its([:requirement]) { is_expected.to eq("^1.2.0") } - end - end - - context "on a version that is all zeros" do - let(:latest_resolvable_version) { Gem::Version.new("0.0.2") } - let(:manifest_req_string) { "^0.0.0" } - its([:requirement]) { is_expected.to eq("^0.0.2") } - end - end - - context "and an x.x was previously specified" do - let(:manifest_req_string) { "0.x.x" } - # TODO: Improve me! - its([:requirement]) { is_expected.to eq("1.5.0") } - - context "four places" do - let(:manifest_req_string) { "0.x.x-rc1" } - # TODO: Improve me! - its([:requirement]) { is_expected.to eq("1.5.0") } - end - end - - context "with just *" do - let(:manifest_req_string) { "*" } - its([:requirement]) { is_expected.to eq("*") } - end - - context "and a tilda was previously specified" do - let(:latest_resolvable_version) { Gem::Version.new("2.5.3") } - - context "that the latest version satisfies" do - let(:manifest_req_string) { "~2.5.1" } - its([:requirement]) { is_expected.to eq("~2.5.3") } - end - - context "including a pre-release" do - let(:manifest_req_string) { "~2.5.1-rc1" } - its([:requirement]) { is_expected.to eq("~2.5.3") } - end - - context "including an x" do - let(:manifest_req_string) { "~2.x.x" } - # TODO: Improve me! - its([:requirement]) { is_expected.to eq("~2.5.3") } - - context "when the range isn't covered" do - let(:manifest_req_string) { "~2.4.x" } - # TODO: Improve me! - its([:requirement]) { is_expected.to eq("~2.5.3") } - end - end - end - - context "and there were multiple specifications" do - let(:manifest_req_string) { "> 1.0.0, < 1.2.0" } - its([:requirement]) { is_expected.to eq("> 1.0.0, < 1.6.0") } - - context "already valid" do - let(:manifest_req_string) { "> 1.0.0, < 1.7.0" } - its([:requirement]) { is_expected.to eq(manifest_req_string) } - end - - context "specified with || and valid" do - let(:manifest_req_string) { "^1.0.0 || ^2.0.0" } - its([:requirement]) { is_expected.to eq(manifest_req_string) } - end - - context "that include a pre-release" do - let(:manifest_req_string) { ">=1.2.0, <1.4.0-dev" } - its([:requirement]) { is_expected.to eq(">=1.2.0, <1.6.0") } - end - end - - context "and there were multiple requirements" do - let(:requirements) { [manifest_req, other_manifest_req] } - - let(:other_manifest_req) do - { - file: "another/Gopkg.toml", - requirement: other_requirement_string, - groups: [], - source: nil - } - end - let(:manifest_req_string) { "^1.2.3" } - let(:other_requirement_string) { "^0.x.x" } - - it "updates the requirement that needs to be updated" do - expect(updater.updated_requirements).to match_array( - [ - { - file: "Gopkg.toml", - requirement: "^1.5.0", - groups: [], - source: nil - }, - { - file: "another/Gopkg.toml", - requirement: "^1.5.0", - groups: [], - source: nil - } - ] - ) - end - - context "for the same file" do - let(:requirements) do - [ - { - requirement: "0.1.x", - file: "Gopkg.toml", - groups: ["dependencies"], - source: nil - }, - { - requirement: "^0.1.0", - file: "Gopkg.toml", - groups: ["devDependencies"], - source: nil - } - ] - end - - it "updates both requirements" do - expect(updater.updated_requirements).to match_array( - [ - { - requirement: "1.5.0", - file: "Gopkg.toml", - groups: ["dependencies"], - source: nil - }, - { - requirement: "^1.5.0", - file: "Gopkg.toml", - groups: ["devDependencies"], - source: nil - } - ] - ) - end - end - end - end - end - end -end diff --git a/dep/spec/dependabot/dep/update_checker/version_resolver_spec.rb b/dep/spec/dependabot/dep/update_checker/version_resolver_spec.rb deleted file mode 100644 index a0ab47f5d2..0000000000 --- a/dep/spec/dependabot/dep/update_checker/version_resolver_spec.rb +++ /dev/null @@ -1,107 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dependency_file" -require "dependabot/dep/update_checker/version_resolver" - -RSpec.describe Dependabot::Dep::UpdateChecker::VersionResolver do - subject(:resolver) do - described_class.new( - dependency: dependency, - dependency_files: dependency_files, - credentials: credentials - ) - end - - let(:credentials) do - [{ - "type" => "git_source", - "host" => "github.com", - "username" => "x-access-token", - "password" => "token" - }] - end - let(:dependency_files) do - [ - Dependabot::DependencyFile.new( - name: "Gopkg.toml", - content: fixture("gopkg_tomls", manifest_fixture_name) - ), - Dependabot::DependencyFile.new( - name: "Gopkg.lock", - content: fixture("gopkg_locks", lockfile_fixture_name) - ) - ] - end - let(:manifest_fixture_name) { "no_version.toml" } - let(:lockfile_fixture_name) { "no_version.lock" } - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: dependency_version, - requirements: requirements, - package_manager: "cargo" - ) - end - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: dependency_version, - requirements: requirements, - package_manager: "dep" - ) - end - let(:requirements) do - [{ file: "Gopkg.toml", requirement: req_str, groups: [], source: source }] - end - let(:dependency_name) { "github.com/dgrijalva/jwt-go" } - let(:dependency_version) { "1.0.1" } - let(:req_str) { nil } - let(:source) { { type: "default", source: "github.com/dgrijalva/jwt-go" } } - - describe "latest_resolvable_version" do - subject(:latest_resolvable_version) { resolver.latest_resolvable_version } - - it { is_expected.to be >= Gem::Version.new("0.3.0") } - - context "with a git dependency" do - context "that is unreachable" do - let(:manifest_fixture_name) { "unreachable_source.toml" } - let(:lockfile_fixture_name) { "unreachable_source.lock" } - let(:dependency_name) { "github.com/dependabot/private-go-dep" } - let(:source) do - { - type: "git", - url: "https://github.com/dependabot/private-go-dep", - branch: "master", - ref: nil - } - end - - it "raises a helpful error" do - expect { latest_resolvable_version }.to raise_error do |error| - expect(error).to be_a Dependabot::GitDependenciesNotReachable - expect(error.dependency_urls). - to eq(["https://github.com/dependabot/private-go-dep"]) - end - end - end - - context "that specifies a tag as a revision" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:lockfile_fixture_name) { "tag_as_revision.lock" } - let(:dependency_name) { "golang.org/x/text" } - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.2.0" - } - end - - it { is_expected.to eq("v0.2.0") } - end - end - end -end diff --git a/dep/spec/dependabot/dep/update_checker_spec.rb b/dep/spec/dependabot/dep/update_checker_spec.rb deleted file mode 100644 index 0d3c2a121f..0000000000 --- a/dep/spec/dependabot/dep/update_checker_spec.rb +++ /dev/null @@ -1,556 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dep/update_checker" -require "dependabot/dep/metadata_finder" -require_common_spec "update_checkers/shared_examples_for_update_checkers" - -RSpec.describe Dependabot::Dep::UpdateChecker do - it_behaves_like "an update checker" - - let(:checker) do - described_class.new( - dependency: dependency, - dependency_files: dependency_files, - credentials: credentials, - ignored_versions: ignored_versions - ) - end - - let(:ignored_versions) { [] } - let(:credentials) do - [{ - "type" => "git_source", - "host" => "github.com", - "username" => "x-access-token", - "password" => "token" - }] - end - let(:dependency_files) do - [ - Dependabot::DependencyFile.new( - name: "Gopkg.toml", - content: fixture("gopkg_tomls", manifest_fixture_name) - ), - Dependabot::DependencyFile.new( - name: "Gopkg.lock", - content: fixture("gopkg_locks", lockfile_fixture_name) - ) - ] - end - let(:manifest_fixture_name) { "no_version.toml" } - let(:lockfile_fixture_name) { "no_version.lock" } - let(:dependency) do - Dependabot::Dependency.new( - name: dependency_name, - version: dependency_version, - requirements: requirements, - package_manager: "dep" - ) - end - let(:requirements) do - [{ file: "Gopkg.toml", requirement: req_str, groups: [], source: source }] - end - let(:dependency_name) { "github.com/dgrijalva/jwt-go" } - let(:dependency_version) { "1.0.1" } - let(:req_str) { nil } - let(:source) { { type: "default", source: "github.com/dgrijalva/jwt-go" } } - - before do - jwt_service_pack_url = - "https://github.com/dgrijalva/jwt-go.git/info/refs"\ - "?service=git-upload-pack" - stub_request(:get, jwt_service_pack_url). - to_return( - status: 200, - body: fixture("git", "upload_packs", "jwt-go"), - headers: { - "content-type" => "application/x-git-upload-pack-advertisement" - } - ) - - mgo_service_pack_url = - "https://github.com/globalsign/mgo.git/info/refs"\ - "?service=git-upload-pack" - stub_request(:get, mgo_service_pack_url). - to_return( - status: 200, - body: fixture("git", "upload_packs", "mgo"), - headers: { - "content-type" => "application/x-git-upload-pack-advertisement" - } - ) - - text_service_pack_url = - "https://github.com/golang/text.git/info/refs"\ - "?service=git-upload-pack" - stub_request(:get, text_service_pack_url). - to_return( - status: 200, - body: fixture("git", "upload_packs", "text"), - headers: { - "content-type" => "application/x-git-upload-pack-advertisement" - } - ) - - color_service_pack_url = - "https://github.com/fatih/color.git/info/refs"\ - "?service=git-upload-pack" - stub_request(:get, color_service_pack_url). - to_return( - status: 200, - body: fixture("git", "upload_packs", "color"), - headers: { - "content-type" => "application/x-git-upload-pack-advertisement" - } - ) - end - - describe "#up_to_date?" do - subject { checker.up_to_date? } - it { is_expected.to eq(false) } - - context "with a git dependency" do - let(:dependency_name) { "golang.org/x/text" } - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: branch, - ref: ref - } - end - - before do - repo_url = "https://api.github.com/repos/golang/text" - stub_request(:get, repo_url + "/compare/v0.3.0...r2018.04.23"). - to_return( - status: 200, - body: commit_compare_response, - headers: { "Content-Type" => "application/json" } - ) - end - let(:commit_compare_response) do - fixture("github", "commit_compare_behind.json") - end - - context "that specifies a tag as a version" do - let(:manifest_fixture_name) { "tag_as_version.toml" } - let(:lockfile_fixture_name) { "tag_as_version.lock" } - let(:dependency_name) { "github.com/globalsign/mgo" } - let(:source) do - { - type: "git", - url: "https://github.com/globalsign/mgo", - branch: nil, - ref: "r2018.04.23" - } - end - let(:req_str) { nil } - let(:dependency_version) { "r2018.04.23" } - - it { is_expected.to eq(false) } - end - end - end - - describe "#can_update?" do - subject { checker.can_update?(requirements_to_unlock: :own) } - it { is_expected.to eq(true) } - - context "with a git dependency" do - let(:dependency_name) { "golang.org/x/text" } - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: branch, - ref: ref - } - end - - before do - repo_url = "https://api.github.com/repos/golang/text" - stub_request(:get, repo_url + "/compare/v0.3.0...r2018.04.23"). - to_return( - status: 200, - body: commit_compare_response, - headers: { "Content-Type" => "application/json" } - ) - end - let(:commit_compare_response) do - fixture("github", "commit_compare_behind.json") - end - - context "that specifies a tag as a version" do - let(:manifest_fixture_name) { "tag_as_version.toml" } - let(:lockfile_fixture_name) { "tag_as_version.lock" } - let(:dependency_name) { "github.com/globalsign/mgo" } - let(:source) do - { - type: "git", - url: "https://github.com/globalsign/mgo", - branch: nil, - ref: "r2018.04.23" - } - end - let(:req_str) { nil } - let(:dependency_version) { "r2018.04.23" } - - it { is_expected.to eq(true) } - end - end - end - - describe "#latest_version" do - subject { checker.latest_version } - - it "delegates to LatestVersionFinder" do - expect(described_class::LatestVersionFinder).to receive(:new).with( - dependency: dependency, - dependency_files: dependency_files, - credentials: credentials, - ignored_versions: ignored_versions - ).and_call_original - - expect(checker.latest_version).to eq(Gem::Version.new("3.2.0")) - end - end - - describe "#latest_resolvable_version" do - subject(:latest_resolvable_version) { checker.latest_resolvable_version } - - it "delegates to VersionResolver" do - prepped_files = described_class::FilePreparer.new( - dependency_files: dependency_files, - dependency: dependency, - unlock_requirement: true, - remove_git_source: false, - latest_allowable_version: Gem::Version.new("3.2.0") - ).prepared_dependency_files - - expect(described_class::VersionResolver).to receive(:new).with( - dependency: dependency, - dependency_files: prepped_files, - credentials: credentials - ).and_call_original - - expect(latest_resolvable_version).to eq(Gem::Version.new("3.2.0")) - end - - context "with an indirect dependency" do - let(:requirements) { [] } - it { is_expected.to eq(dependency.version) } - end - - context "with a manifest file that needs unlocking" do - let(:manifest_fixture_name) { "bare_version.toml" } - let(:lockfile_fixture_name) { "bare_version.lock" } - let(:req_str) { "1.0.0" } - - it "unlocks the manifest and gets the correct version" do - expect(latest_resolvable_version).to eq(Gem::Version.new("3.2.0")) - end - end - - context "with a git dependency" do - let(:dependency_name) { "golang.org/x/text" } - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: branch, - ref: ref - } - end - - before do - repo_url = "https://api.github.com/repos/golang/text" - stub_request(:get, repo_url + "/compare/v0.3.0...#{branch || ref}"). - to_return( - status: 200, - body: commit_compare_response, - headers: { "Content-Type" => "application/json" } - ) - end - let(:commit_compare_response) do - fixture("github", "commit_compare_behind.json") - end - - context "that specifies a branch" do - let(:manifest_fixture_name) { "branch.toml" } - let(:lockfile_fixture_name) { "branch.lock" } - let(:req_str) { nil } - let(:dependency_version) { "7dd2c8130f5e924233f5543598300651c386d431" } - let(:branch) { "master" } - let(:ref) { nil } - - context "that is behind" do - let(:commit_compare_response) do - fixture("github", "commit_compare_behind.json") - end - - it "updates to a released version" do - expect(latest_resolvable_version).to eq(Gem::Version.new("0.3.0")) - end - end - end - - context "that specifies a tag" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:lockfile_fixture_name) { "tag_as_revision.lock" } - let(:req_str) { nil } - let(:dependency_version) { "v0.2.0" } - let(:branch) { nil } - let(:ref) { "v0.2.0" } - - it "updates to a released version" do - expect(latest_resolvable_version).to eq(Gem::Version.new("0.3.0")) - end - - context "as a version" do - let(:manifest_fixture_name) { "tag_as_version.toml" } - let(:lockfile_fixture_name) { "tag_as_version.lock" } - let(:dependency_name) { "github.com/globalsign/mgo" } - let(:source) do - { - type: "git", - url: "https://github.com/globalsign/mgo", - branch: nil, - ref: "r2018.04.23" - } - end - let(:req_str) { nil } - let(:dependency_version) { "r2018.04.23" } - - it "returns the updated the tag name" do - expect(latest_resolvable_version).to eq("r2018.06.15") - end - - context "with the revision as the version" do - let(:lockfile_fixture_name) { "tag_as_version_old.lock" } - let(:dependency_version) do - "efe0945164a7e582241f37ae8983c075f8f2e870" - end - - it "returns the updated tag commit sha" do - expect(latest_resolvable_version). - to eq("113d3961e7311526535a1ef7042196563d442761") - end - end - end - end - end - end - - describe "#latest_resolvable_version_with_no_unlock" do - subject { checker.latest_resolvable_version_with_no_unlock } - - it "delegates to VersionResolver" do - prepped_files = described_class::FilePreparer.new( - dependency_files: dependency_files, - dependency: dependency, - unlock_requirement: true, - remove_git_source: false, - latest_allowable_version: Gem::Version.new("3.2.0") - ).prepared_dependency_files - - expect(described_class::VersionResolver).to receive(:new).with( - dependency: dependency, - dependency_files: prepped_files, - credentials: credentials - ).and_call_original - - expect(checker.latest_resolvable_version_with_no_unlock). - to eq(Gem::Version.new("3.2.0")) - end - - context "with an indirect dependency" do - let(:requirements) { [] } - it { is_expected.to eq(dependency.version) } - end - - context "with a manifest file that needs unlocking" do - let(:manifest_fixture_name) { "bare_version.toml" } - let(:lockfile_fixture_name) { "bare_version.lock" } - let(:req_str) { "1.0.0" } - - it "doesn't unlock the manifest" do - expect(checker.latest_resolvable_version_with_no_unlock). - to eq(Gem::Version.new("1.0.2")) - end - end - - context "with a git dependency" do - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: branch, - ref: ref - } - end - let(:dependency_name) { "golang.org/x/text" } - - before do - repo_url = "https://api.github.com/repos/golang/text" - stub_request(:get, repo_url + "/compare/v0.3.0...#{branch || ref}"). - to_return( - status: 200, - body: commit_compare_response, - headers: { "Content-Type" => "application/json" } - ) - end - let(:commit_compare_response) do - fixture("github", "commit_compare_behind.json") - end - - context "that specifies a tag" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:lockfile_fixture_name) { "tag_as_revision.lock" } - let(:req_str) { nil } - let(:dependency_version) { "v0.2.0" } - let(:branch) { nil } - let(:ref) { "v0.2.0" } - - it "doesn't unpin the commit" do - expect(checker.latest_resolvable_version_with_no_unlock). - to eq("v0.2.0") - end - end - end - end - - describe "#updated_requirements" do - subject { checker.updated_requirements } - - it "delegates to RequirementsUpdater" do - expect(described_class::RequirementsUpdater).to receive(:new).with( - requirements: dependency.requirements, - updated_source: source, - update_strategy: :widen_ranges, - latest_version: "3.2.0", - latest_resolvable_version: "3.2.0" - ).and_call_original - - expect(checker.updated_requirements).to eq( - [{ - file: "Gopkg.toml", - requirement: nil, - groups: [], - source: { type: "default", source: "github.com/dgrijalva/jwt-go" } - }] - ) - end - - context "with a manifest file that needs unlocking" do - let(:manifest_fixture_name) { "bare_version.toml" } - let(:lockfile_fixture_name) { "bare_version.lock" } - let(:req_str) { "1.0.0" } - - it "updates the requirements for the new version range" do - expect(checker.updated_requirements).to eq( - [{ - file: "Gopkg.toml", - requirement: ">= 1.0.0, < 4.0.0", - groups: [], - source: { type: "default", source: "github.com/dgrijalva/jwt-go" } - }] - ) - end - - context "for an application" do - before do - dependency_files << - Dependabot::DependencyFile.new( - name: "main.go", - content: "code", - type: "package_main" - ) - end - - it "updates the requirements for the new version range" do - expect(checker.updated_requirements).to eq( - [{ - file: "Gopkg.toml", - requirement: "3.2.0", - groups: [], - source: { type: "default", source: "github.com/dgrijalva/jwt-go" } - }] - ) - end - end - - context "when a requirements_update_strategy has been specified" do - let(:checker) do - described_class.new( - dependency: dependency, - dependency_files: dependency_files, - credentials: credentials, - ignored_versions: ignored_versions, - requirements_update_strategy: :bump_versions - ) - end - - it "uses the specified requirements_update_strategy" do - expect(described_class::RequirementsUpdater).to receive(:new).with( - requirements: dependency.requirements, - updated_source: source, - update_strategy: :bump_versions, - latest_version: "3.2.0", - latest_resolvable_version: "3.2.0" - ).and_call_original - expect(checker.updated_requirements).to eq( - [{ - file: "Gopkg.toml", - requirement: "3.2.0", - groups: [], - source: { type: "default", source: "github.com/dgrijalva/jwt-go" } - }] - ) - end - end - end - - context "with a git dependency we should switch" do - let(:manifest_fixture_name) { "tag_as_revision.toml" } - let(:lockfile_fixture_name) { "tag_as_revision.lock" } - - let(:dependency_name) { "golang.org/x/text" } - let(:req_str) { nil } - let(:dependency_version) { "v0.2.0" } - let(:source) do - { - type: "git", - url: "https://github.com/golang/text", - branch: nil, - ref: "v0.2.0" - } - end - - before do - repo_url = "https://api.github.com/repos/golang/text" - stub_request(:get, repo_url + "/compare/v0.3.0...v0.2.0"). - to_return( - status: 200, - body: commit_compare_response, - headers: { "Content-Type" => "application/json" } - ) - end - let(:commit_compare_response) do - fixture("github", "commit_compare_behind.json") - end - - it "updates the requirements for the new version range" do - expect(checker.updated_requirements).to eq( - [{ - file: "Gopkg.toml", - requirement: "^0.3.0", - groups: [], - source: { type: "default", source: "golang.org/x/text" } - }] - ) - end - end - end -end diff --git a/dep/spec/dependabot/dep/version_spec.rb b/dep/spec/dependabot/dep/version_spec.rb deleted file mode 100644 index f7010b2974..0000000000 --- a/dep/spec/dependabot/dep/version_spec.rb +++ /dev/null @@ -1,115 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dep/version" - -RSpec.describe Dependabot::Dep::Version do - subject(:version) { described_class.new(version_string) } - let(:version_string) { "1.0.0" } - - describe ".correct?" do - subject { described_class.correct?(version_string) } - - context "with a string prefixed with a 'v'" do - let(:version_string) { "v1.0.0" } - it { is_expected.to eq(true) } - end - - context "with a string not prefixed with a 'v'" do - let(:version_string) { "1.0.0" } - it { is_expected.to eq(true) } - end - - context "with an 'incompatible' suffix" do - let(:version_string) { "v1.0.0+incompatible" } - it { is_expected.to eq(true) } - end - - context "with an invalid string" do - let(:version_string) { "va1.0.0" } - it { is_expected.to eq(false) } - end - - context "with an empty string" do - let(:version_string) { "" } - it { is_expected.to eq(true) } - end - end - - describe "#to_s" do - subject { version.to_s } - - context "with a non-prerelease" do - let(:version_string) { "1.0.0" } - it { is_expected.to eq "1.0.0" } - end - - context "with a normal prerelease" do - let(:version_string) { "1.0.0.pre1" } - it { is_expected.to eq "1.0.0.pre1" } - end - - context "with a PHP-style prerelease" do - let(:version_string) { "1.0.0-pre1" } - it { is_expected.to eq "1.0.0-pre1" } - end - - context "with a leading v" do - let(:version_string) { "v1.0.0" } - it { is_expected.to eq "1.0.0" } - end - - context "with an empty string" do - let(:version_string) { "" } - it { is_expected.to eq "" } - end - end - - describe "#inspect" do - subject { version.inspect } - - context "with a version that Gem::Version would mangle" do - let(:version_string) { "1.0.0-pre1" } - it "doesn't mangle it" do - is_expected.to eq "#" - end - end - end - - describe "compatibility with Gem::Requirement" do - subject { requirement.satisfied_by?(version) } - let(:requirement) { Gem::Requirement.new(">= 1.0.0") } - - context "with a valid version" do - let(:version_string) { "1.0.0" } - it { is_expected.to eq(true) } - end - - context "with an 'incompatible' suffix" do - let(:version_string) { "1.0.0+incompatible" } - it { is_expected.to eq(true) } - end - - context "with an invalid version" do - let(:version_string) { "0.9.0" } - it { is_expected.to eq(false) } - end - - context "with a valid prerelease version" do - let(:version_string) { "1.1.0-pre" } - it { is_expected.to eq(true) } - end - - context "prefixed with a 'v'" do - context "with a greater version" do - let(:version_string) { "v1.1.0" } - it { is_expected.to eq(true) } - end - - context "with an lesser version" do - let(:version_string) { "v0.9.0" } - it { is_expected.to eq(false) } - end - end - end -end diff --git a/dep/spec/dependabot/dep_spec.rb b/dep/spec/dependabot/dep_spec.rb deleted file mode 100644 index 5ea2ecc4be..0000000000 --- a/dep/spec/dependabot/dep_spec.rb +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -require "spec_helper" -require "dependabot/dep" -require_common_spec "shared_examples_for_autoloading" - -RSpec.describe Dependabot::Dep do - it_behaves_like "it registers the required classes", "dep" -end diff --git a/dep/spec/fixtures/git/upload_packs/color b/dep/spec/fixtures/git/upload_packs/color deleted file mode 100644 index a542e5f99b..0000000000 Binary files a/dep/spec/fixtures/git/upload_packs/color and /dev/null differ diff --git a/dep/spec/fixtures/git/upload_packs/jwt-go b/dep/spec/fixtures/git/upload_packs/jwt-go deleted file mode 100644 index f46f4edb83..0000000000 Binary files a/dep/spec/fixtures/git/upload_packs/jwt-go and /dev/null differ diff --git a/dep/spec/fixtures/git/upload_packs/mgo b/dep/spec/fixtures/git/upload_packs/mgo deleted file mode 100644 index a56dc70c95..0000000000 Binary files a/dep/spec/fixtures/git/upload_packs/mgo and /dev/null differ diff --git a/dep/spec/fixtures/git/upload_packs/text b/dep/spec/fixtures/git/upload_packs/text deleted file mode 100644 index ba8fa5d1db..0000000000 Binary files a/dep/spec/fixtures/git/upload_packs/text and /dev/null differ diff --git a/dep/spec/fixtures/github/commit_compare_behind.json b/dep/spec/fixtures/github/commit_compare_behind.json deleted file mode 100644 index c7ad54939a..0000000000 --- a/dep/spec/fixtures/github/commit_compare_behind.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "url": "https://api.github.com/repos/gocardless/business/compare/v1.10.0...v1.9.0", - "html_url": "https://github.com/gocardless/business/compare/v1.10.0...v1.9.0", - "permalink_url": "https://github.com/gocardless/business/compare/gocardless:d31e445...gocardless:c878eaa", - "diff_url": "https://github.com/gocardless/business/compare/v1.10.0...v1.9.0.diff", - "patch_url": "https://github.com/gocardless/business/compare/v1.10.0...v1.9.0.patch", - "base_commit": { - "sha": "d31e445215b5af70c1604715d97dd953e868380e", - "commit": { - "author": { - "name": "Jay Shah", - "email": "jay@gocardless.com", - "date": "2017-09-20T16:47:06Z" - }, - "committer": { - "name": "Jay Shah", - "email": "hey@jay.sh", - "date": "2017-09-21T08:44:04Z" - }, - "message": "Make code more readable.", - "tree": { - "sha": "6624d2e3f805e27a79fbc2d3be02a5c8e2ea6e35", - "url": "https://api.github.com/repos/gocardless/business/git/trees/6624d2e3f805e27a79fbc2d3be02a5c8e2ea6e35" - }, - "url": "https://api.github.com/repos/gocardless/business/git/commits/d31e445215b5af70c1604715d97dd953e868380e", - "comment_count": 0 - }, - "url": "https://api.github.com/repos/gocardless/business/commits/d31e445215b5af70c1604715d97dd953e868380e", - "html_url": "https://github.com/gocardless/business/commit/d31e445215b5af70c1604715d97dd953e868380e", - "comments_url": "https://api.github.com/repos/gocardless/business/commits/d31e445215b5af70c1604715d97dd953e868380e/comments", - "author": { - "login": "jaysh", - "id": 4825223, - "avatar_url": "https://avatars1.githubusercontent.com/u/4825223?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jaysh", - "html_url": "https://github.com/jaysh", - "followers_url": "https://api.github.com/users/jaysh/followers", - "following_url": "https://api.github.com/users/jaysh/following{/other_user}", - "gists_url": "https://api.github.com/users/jaysh/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jaysh/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jaysh/subscriptions", - "organizations_url": "https://api.github.com/users/jaysh/orgs", - "repos_url": "https://api.github.com/users/jaysh/repos", - "events_url": "https://api.github.com/users/jaysh/events{/privacy}", - "received_events_url": "https://api.github.com/users/jaysh/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "jaysh", - "id": 4825223, - "avatar_url": "https://avatars1.githubusercontent.com/u/4825223?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jaysh", - "html_url": "https://github.com/jaysh", - "followers_url": "https://api.github.com/users/jaysh/followers", - "following_url": "https://api.github.com/users/jaysh/following{/other_user}", - "gists_url": "https://api.github.com/users/jaysh/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jaysh/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jaysh/subscriptions", - "organizations_url": "https://api.github.com/users/jaysh/orgs", - "repos_url": "https://api.github.com/users/jaysh/repos", - "events_url": "https://api.github.com/users/jaysh/events{/privacy}", - "received_events_url": "https://api.github.com/users/jaysh/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "fcc5d35d3a5ff9a4ba16178a5442c3c105ffacdb", - "url": "https://api.github.com/repos/gocardless/business/commits/fcc5d35d3a5ff9a4ba16178a5442c3c105ffacdb", - "html_url": "https://github.com/gocardless/business/commit/fcc5d35d3a5ff9a4ba16178a5442c3c105ffacdb" - } - ] - }, - "merge_base_commit": { - "sha": "c878eaa4dfcc38a2b95100f79dedc63f34755473", - "commit": { - "author": { - "name": "Ivan Giuliani", - "email": "giuliani.v@gmail.com", - "date": "2017-08-23T14:03:49Z" - }, - "committer": { - "name": "GitHub", - "email": "noreply@github.com", - "date": "2017-08-23T14:03:49Z" - }, - "message": "Merge pull request #20 from gocardless/denmark\n\nAdd 2017 Betalingsservice holiday definitions", - "tree": { - "sha": "db87ea1b79444c775ecf800cc9c397700b88e912", - "url": "https://api.github.com/repos/gocardless/business/git/trees/db87ea1b79444c775ecf800cc9c397700b88e912" - }, - "url": "https://api.github.com/repos/gocardless/business/git/commits/c878eaa4dfcc38a2b95100f79dedc63f34755473", - "comment_count": 0 - }, - "url": "https://api.github.com/repos/gocardless/business/commits/c878eaa4dfcc38a2b95100f79dedc63f34755473", - "html_url": "https://github.com/gocardless/business/commit/c878eaa4dfcc38a2b95100f79dedc63f34755473", - "comments_url": "https://api.github.com/repos/gocardless/business/commits/c878eaa4dfcc38a2b95100f79dedc63f34755473/comments", - "author": { - "login": "ivgiuliani", - "id": 25649, - "avatar_url": "https://avatars1.githubusercontent.com/u/25649?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/ivgiuliani", - "html_url": "https://github.com/ivgiuliani", - "followers_url": "https://api.github.com/users/ivgiuliani/followers", - "following_url": "https://api.github.com/users/ivgiuliani/following{/other_user}", - "gists_url": "https://api.github.com/users/ivgiuliani/gists{/gist_id}", - "starred_url": "https://api.github.com/users/ivgiuliani/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/ivgiuliani/subscriptions", - "organizations_url": "https://api.github.com/users/ivgiuliani/orgs", - "repos_url": "https://api.github.com/users/ivgiuliani/repos", - "events_url": "https://api.github.com/users/ivgiuliani/events{/privacy}", - "received_events_url": "https://api.github.com/users/ivgiuliani/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "web-flow", - "id": 19864447, - "avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/web-flow", - "html_url": "https://github.com/web-flow", - "followers_url": "https://api.github.com/users/web-flow/followers", - "following_url": "https://api.github.com/users/web-flow/following{/other_user}", - "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", - "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", - "organizations_url": "https://api.github.com/users/web-flow/orgs", - "repos_url": "https://api.github.com/users/web-flow/repos", - "events_url": "https://api.github.com/users/web-flow/events{/privacy}", - "received_events_url": "https://api.github.com/users/web-flow/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "108bb7a809a28d32350433864a9a90d15840e15c", - "url": "https://api.github.com/repos/gocardless/business/commits/108bb7a809a28d32350433864a9a90d15840e15c", - "html_url": "https://github.com/gocardless/business/commit/108bb7a809a28d32350433864a9a90d15840e15c" - }, - { - "sha": "03b96a358903f471e374bd09bd105e926098992b", - "url": "https://api.github.com/repos/gocardless/business/commits/03b96a358903f471e374bd09bd105e926098992b", - "html_url": "https://github.com/gocardless/business/commit/03b96a358903f471e374bd09bd105e926098992b" - } - ] - }, - "status": "behind", - "ahead_by": 0, - "behind_by": 5, - "total_commits": 0, - "commits": [], - "files": [] -} diff --git a/dep/spec/fixtures/github/commit_compare_diverged.json b/dep/spec/fixtures/github/commit_compare_diverged.json deleted file mode 100644 index a6540c8ff1..0000000000 --- a/dep/spec/fixtures/github/commit_compare_diverged.json +++ /dev/null @@ -1,454 +0,0 @@ -{ - "url": "https://api.github.com/repos/gocardless/business/compare/v1.10.0...rubocop", - "html_url": "https://github.com/gocardless/business/compare/v1.10.0...rubocop", - "permalink_url": "https://github.com/gocardless/business/compare/gocardless:d31e445...gocardless:ace90dc", - "diff_url": "https://github.com/gocardless/business/compare/v1.10.0...rubocop.diff", - "patch_url": "https://github.com/gocardless/business/compare/v1.10.0...rubocop.patch", - "base_commit": { - "sha": "d31e445215b5af70c1604715d97dd953e868380e", - "commit": { - "author": { - "name": "Jay Shah", - "email": "jay@gocardless.com", - "date": "2017-09-20T16:47:06Z" - }, - "committer": { - "name": "Jay Shah", - "email": "hey@jay.sh", - "date": "2017-09-21T08:44:04Z" - }, - "message": "Make code more readable.", - "tree": { - "sha": "6624d2e3f805e27a79fbc2d3be02a5c8e2ea6e35", - "url": "https://api.github.com/repos/gocardless/business/git/trees/6624d2e3f805e27a79fbc2d3be02a5c8e2ea6e35" - }, - "url": "https://api.github.com/repos/gocardless/business/git/commits/d31e445215b5af70c1604715d97dd953e868380e", - "comment_count": 0 - }, - "url": "https://api.github.com/repos/gocardless/business/commits/d31e445215b5af70c1604715d97dd953e868380e", - "html_url": "https://github.com/gocardless/business/commit/d31e445215b5af70c1604715d97dd953e868380e", - "comments_url": "https://api.github.com/repos/gocardless/business/commits/d31e445215b5af70c1604715d97dd953e868380e/comments", - "author": { - "login": "jaysh", - "id": 4825223, - "avatar_url": "https://avatars1.githubusercontent.com/u/4825223?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jaysh", - "html_url": "https://github.com/jaysh", - "followers_url": "https://api.github.com/users/jaysh/followers", - "following_url": "https://api.github.com/users/jaysh/following{/other_user}", - "gists_url": "https://api.github.com/users/jaysh/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jaysh/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jaysh/subscriptions", - "organizations_url": "https://api.github.com/users/jaysh/orgs", - "repos_url": "https://api.github.com/users/jaysh/repos", - "events_url": "https://api.github.com/users/jaysh/events{/privacy}", - "received_events_url": "https://api.github.com/users/jaysh/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "jaysh", - "id": 4825223, - "avatar_url": "https://avatars1.githubusercontent.com/u/4825223?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jaysh", - "html_url": "https://github.com/jaysh", - "followers_url": "https://api.github.com/users/jaysh/followers", - "following_url": "https://api.github.com/users/jaysh/following{/other_user}", - "gists_url": "https://api.github.com/users/jaysh/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jaysh/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jaysh/subscriptions", - "organizations_url": "https://api.github.com/users/jaysh/orgs", - "repos_url": "https://api.github.com/users/jaysh/repos", - "events_url": "https://api.github.com/users/jaysh/events{/privacy}", - "received_events_url": "https://api.github.com/users/jaysh/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "fcc5d35d3a5ff9a4ba16178a5442c3c105ffacdb", - "url": "https://api.github.com/repos/gocardless/business/commits/fcc5d35d3a5ff9a4ba16178a5442c3c105ffacdb", - "html_url": "https://github.com/gocardless/business/commit/fcc5d35d3a5ff9a4ba16178a5442c3c105ffacdb" - } - ] - }, - "merge_base_commit": { - "sha": "20984b51291e25782bb55ef72008bed592c4c2d7", - "commit": { - "author": { - "name": "Matt Thomson", - "email": "mattjohnthomson@gmail.com", - "date": "2017-02-13T17:45:42Z" - }, - "committer": { - "name": "GitHub", - "email": "noreply@github.com", - "date": "2017-02-13T17:45:42Z" - }, - "message": "Merge pull request #18 from gocardless/bump-version-to-1.8.0\n\nBump version to 1.8.0", - "tree": { - "sha": "8b2c15faf83aba6803c457ff420740964b701647", - "url": "https://api.github.com/repos/gocardless/business/git/trees/8b2c15faf83aba6803c457ff420740964b701647" - }, - "url": "https://api.github.com/repos/gocardless/business/git/commits/20984b51291e25782bb55ef72008bed592c4c2d7", - "comment_count": 0 - }, - "url": "https://api.github.com/repos/gocardless/business/commits/20984b51291e25782bb55ef72008bed592c4c2d7", - "html_url": "https://github.com/gocardless/business/commit/20984b51291e25782bb55ef72008bed592c4c2d7", - "comments_url": "https://api.github.com/repos/gocardless/business/commits/20984b51291e25782bb55ef72008bed592c4c2d7/comments", - "author": { - "login": "matt-thomson", - "id": 771863, - "avatar_url": "https://avatars3.githubusercontent.com/u/771863?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/matt-thomson", - "html_url": "https://github.com/matt-thomson", - "followers_url": "https://api.github.com/users/matt-thomson/followers", - "following_url": "https://api.github.com/users/matt-thomson/following{/other_user}", - "gists_url": "https://api.github.com/users/matt-thomson/gists{/gist_id}", - "starred_url": "https://api.github.com/users/matt-thomson/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/matt-thomson/subscriptions", - "organizations_url": "https://api.github.com/users/matt-thomson/orgs", - "repos_url": "https://api.github.com/users/matt-thomson/repos", - "events_url": "https://api.github.com/users/matt-thomson/events{/privacy}", - "received_events_url": "https://api.github.com/users/matt-thomson/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "web-flow", - "id": 19864447, - "avatar_url": "https://avatars3.githubusercontent.com/u/19864447?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/web-flow", - "html_url": "https://github.com/web-flow", - "followers_url": "https://api.github.com/users/web-flow/followers", - "following_url": "https://api.github.com/users/web-flow/following{/other_user}", - "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", - "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", - "organizations_url": "https://api.github.com/users/web-flow/orgs", - "repos_url": "https://api.github.com/users/web-flow/repos", - "events_url": "https://api.github.com/users/web-flow/events{/privacy}", - "received_events_url": "https://api.github.com/users/web-flow/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "39154565de7bac59f915f26fce8f6124edf37ac2", - "url": "https://api.github.com/repos/gocardless/business/commits/39154565de7bac59f915f26fce8f6124edf37ac2", - "html_url": "https://github.com/gocardless/business/commit/39154565de7bac59f915f26fce8f6124edf37ac2" - }, - { - "sha": "beb4c78337428270f6fd0c1f34ef5cddc3870bd5", - "url": "https://api.github.com/repos/gocardless/business/commits/beb4c78337428270f6fd0c1f34ef5cddc3870bd5", - "html_url": "https://github.com/gocardless/business/commit/beb4c78337428270f6fd0c1f34ef5cddc3870bd5" - } - ] - }, - "status": "diverged", - "ahead_by": 3, - "behind_by": 10, - "total_commits": 3, - "commits": [ - { - "sha": "8269023ded834032be24695843462544b12b86c0", - "commit": { - "author": { - "name": "Matt Thomson", - "email": "mattthomson@gocardless.com", - "date": "2017-06-05T17:51:02Z" - }, - "committer": { - "name": "Matt Thomson", - "email": "mattthomson@gocardless.com", - "date": "2017-06-05T17:57:10Z" - }, - "message": "Add Rubocop, autocorrect offences", - "tree": { - "sha": "4bfbaced394069733d8954d2aac9634e3e3aac98", - "url": "https://api.github.com/repos/gocardless/business/git/trees/4bfbaced394069733d8954d2aac9634e3e3aac98" - }, - "url": "https://api.github.com/repos/gocardless/business/git/commits/8269023ded834032be24695843462544b12b86c0", - "comment_count": 0 - }, - "url": "https://api.github.com/repos/gocardless/business/commits/8269023ded834032be24695843462544b12b86c0", - "html_url": "https://github.com/gocardless/business/commit/8269023ded834032be24695843462544b12b86c0", - "comments_url": "https://api.github.com/repos/gocardless/business/commits/8269023ded834032be24695843462544b12b86c0/comments", - "author": { - "login": "matt-thomson", - "id": 771863, - "avatar_url": "https://avatars3.githubusercontent.com/u/771863?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/matt-thomson", - "html_url": "https://github.com/matt-thomson", - "followers_url": "https://api.github.com/users/matt-thomson/followers", - "following_url": "https://api.github.com/users/matt-thomson/following{/other_user}", - "gists_url": "https://api.github.com/users/matt-thomson/gists{/gist_id}", - "starred_url": "https://api.github.com/users/matt-thomson/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/matt-thomson/subscriptions", - "organizations_url": "https://api.github.com/users/matt-thomson/orgs", - "repos_url": "https://api.github.com/users/matt-thomson/repos", - "events_url": "https://api.github.com/users/matt-thomson/events{/privacy}", - "received_events_url": "https://api.github.com/users/matt-thomson/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "matt-thomson", - "id": 771863, - "avatar_url": "https://avatars3.githubusercontent.com/u/771863?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/matt-thomson", - "html_url": "https://github.com/matt-thomson", - "followers_url": "https://api.github.com/users/matt-thomson/followers", - "following_url": "https://api.github.com/users/matt-thomson/following{/other_user}", - "gists_url": "https://api.github.com/users/matt-thomson/gists{/gist_id}", - "starred_url": "https://api.github.com/users/matt-thomson/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/matt-thomson/subscriptions", - "organizations_url": "https://api.github.com/users/matt-thomson/orgs", - "repos_url": "https://api.github.com/users/matt-thomson/repos", - "events_url": "https://api.github.com/users/matt-thomson/events{/privacy}", - "received_events_url": "https://api.github.com/users/matt-thomson/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "20984b51291e25782bb55ef72008bed592c4c2d7", - "url": "https://api.github.com/repos/gocardless/business/commits/20984b51291e25782bb55ef72008bed592c4c2d7", - "html_url": "https://github.com/gocardless/business/commit/20984b51291e25782bb55ef72008bed592c4c2d7" - } - ] - }, - { - "sha": "59532c6733053073a8ee905224874584a4f1d5a9", - "commit": { - "author": { - "name": "Matt Thomson", - "email": "mattthomson@gocardless.com", - "date": "2017-06-05T17:53:49Z" - }, - "committer": { - "name": "Matt Thomson", - "email": "mattthomson@gocardless.com", - "date": "2017-06-05T17:57:10Z" - }, - "message": "Fix Lint/Loop cop", - "tree": { - "sha": "6dd5c0c2e3e497819766294529b23d5f83a444f8", - "url": "https://api.github.com/repos/gocardless/business/git/trees/6dd5c0c2e3e497819766294529b23d5f83a444f8" - }, - "url": "https://api.github.com/repos/gocardless/business/git/commits/59532c6733053073a8ee905224874584a4f1d5a9", - "comment_count": 0 - }, - "url": "https://api.github.com/repos/gocardless/business/commits/59532c6733053073a8ee905224874584a4f1d5a9", - "html_url": "https://github.com/gocardless/business/commit/59532c6733053073a8ee905224874584a4f1d5a9", - "comments_url": "https://api.github.com/repos/gocardless/business/commits/59532c6733053073a8ee905224874584a4f1d5a9/comments", - "author": { - "login": "matt-thomson", - "id": 771863, - "avatar_url": "https://avatars3.githubusercontent.com/u/771863?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/matt-thomson", - "html_url": "https://github.com/matt-thomson", - "followers_url": "https://api.github.com/users/matt-thomson/followers", - "following_url": "https://api.github.com/users/matt-thomson/following{/other_user}", - "gists_url": "https://api.github.com/users/matt-thomson/gists{/gist_id}", - "starred_url": "https://api.github.com/users/matt-thomson/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/matt-thomson/subscriptions", - "organizations_url": "https://api.github.com/users/matt-thomson/orgs", - "repos_url": "https://api.github.com/users/matt-thomson/repos", - "events_url": "https://api.github.com/users/matt-thomson/events{/privacy}", - "received_events_url": "https://api.github.com/users/matt-thomson/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "matt-thomson", - "id": 771863, - "avatar_url": "https://avatars3.githubusercontent.com/u/771863?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/matt-thomson", - "html_url": "https://github.com/matt-thomson", - "followers_url": "https://api.github.com/users/matt-thomson/followers", - "following_url": "https://api.github.com/users/matt-thomson/following{/other_user}", - "gists_url": "https://api.github.com/users/matt-thomson/gists{/gist_id}", - "starred_url": "https://api.github.com/users/matt-thomson/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/matt-thomson/subscriptions", - "organizations_url": "https://api.github.com/users/matt-thomson/orgs", - "repos_url": "https://api.github.com/users/matt-thomson/repos", - "events_url": "https://api.github.com/users/matt-thomson/events{/privacy}", - "received_events_url": "https://api.github.com/users/matt-thomson/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "8269023ded834032be24695843462544b12b86c0", - "url": "https://api.github.com/repos/gocardless/business/commits/8269023ded834032be24695843462544b12b86c0", - "html_url": "https://github.com/gocardless/business/commit/8269023ded834032be24695843462544b12b86c0" - } - ] - }, - { - "sha": "ace90dc4d34136a5d9570e54288c505711fb93ce", - "commit": { - "author": { - "name": "Matt Thomson", - "email": "mattthomson@gocardless.com", - "date": "2017-06-05T17:55:55Z" - }, - "committer": { - "name": "Matt Thomson", - "email": "mattthomson@gocardless.com", - "date": "2017-06-05T17:57:10Z" - }, - "message": "Fix Style/AccessorMethodName cop", - "tree": { - "sha": "f1a9e131b916b9d71c088be3c835a8ce6862ba61", - "url": "https://api.github.com/repos/gocardless/business/git/trees/f1a9e131b916b9d71c088be3c835a8ce6862ba61" - }, - "url": "https://api.github.com/repos/gocardless/business/git/commits/ace90dc4d34136a5d9570e54288c505711fb93ce", - "comment_count": 0 - }, - "url": "https://api.github.com/repos/gocardless/business/commits/ace90dc4d34136a5d9570e54288c505711fb93ce", - "html_url": "https://github.com/gocardless/business/commit/ace90dc4d34136a5d9570e54288c505711fb93ce", - "comments_url": "https://api.github.com/repos/gocardless/business/commits/ace90dc4d34136a5d9570e54288c505711fb93ce/comments", - "author": { - "login": "matt-thomson", - "id": 771863, - "avatar_url": "https://avatars3.githubusercontent.com/u/771863?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/matt-thomson", - "html_url": "https://github.com/matt-thomson", - "followers_url": "https://api.github.com/users/matt-thomson/followers", - "following_url": "https://api.github.com/users/matt-thomson/following{/other_user}", - "gists_url": "https://api.github.com/users/matt-thomson/gists{/gist_id}", - "starred_url": "https://api.github.com/users/matt-thomson/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/matt-thomson/subscriptions", - "organizations_url": "https://api.github.com/users/matt-thomson/orgs", - "repos_url": "https://api.github.com/users/matt-thomson/repos", - "events_url": "https://api.github.com/users/matt-thomson/events{/privacy}", - "received_events_url": "https://api.github.com/users/matt-thomson/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "matt-thomson", - "id": 771863, - "avatar_url": "https://avatars3.githubusercontent.com/u/771863?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/matt-thomson", - "html_url": "https://github.com/matt-thomson", - "followers_url": "https://api.github.com/users/matt-thomson/followers", - "following_url": "https://api.github.com/users/matt-thomson/following{/other_user}", - "gists_url": "https://api.github.com/users/matt-thomson/gists{/gist_id}", - "starred_url": "https://api.github.com/users/matt-thomson/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/matt-thomson/subscriptions", - "organizations_url": "https://api.github.com/users/matt-thomson/orgs", - "repos_url": "https://api.github.com/users/matt-thomson/repos", - "events_url": "https://api.github.com/users/matt-thomson/events{/privacy}", - "received_events_url": "https://api.github.com/users/matt-thomson/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "59532c6733053073a8ee905224874584a4f1d5a9", - "url": "https://api.github.com/repos/gocardless/business/commits/59532c6733053073a8ee905224874584a4f1d5a9", - "html_url": "https://github.com/gocardless/business/commit/59532c6733053073a8ee905224874584a4f1d5a9" - } - ] - } - ], - "files": [ - { - "sha": "1c1db850defccb268f960ff4a47f0e3afd898dc5", - "filename": ".rubocop.yml", - "status": "added", - "additions": 122, - "deletions": 0, - "changes": 122, - "blob_url": "https://github.com/gocardless/business/blob/ace90dc4d34136a5d9570e54288c505711fb93ce/.rubocop.yml", - "raw_url": "https://github.com/gocardless/business/raw/ace90dc4d34136a5d9570e54288c505711fb93ce/.rubocop.yml", - "contents_url": "https://api.github.com/repos/gocardless/business/contents/.rubocop.yml?ref=ace90dc4d34136a5d9570e54288c505711fb93ce", - "patch": "@@ -0,0 +1,122 @@\n+AllCops:\n+ TargetRubyVersion: 2.1\n+ DisplayCopNames: true\n+\n+Lint/UnneededDisable:\n+ Severity: error\n+\n+Metrics/AbcSize:\n+ Max: 59\n+\n+Metrics/CyclomaticComplexity:\n+ Max: 10\n+\n+Metrics/PerceivedComplexity:\n+ Max: 9\n+\n+Metrics/ClassLength:\n+ Enabled: false\n+\n+Layout/LineLength:\n+ Max: 90\n+ Exclude:\n+ - Gemfile\n+\n+Metrics/BlockLength:\n+ Exclude:\n+ - business.gemspec\n+ - spec/*\n+ - spec/**/*\n+\n+# Avoid methods longer than 30 lines of code\n+Metrics/MethodLength:\n+ CountComments: false # count full line comments?\n+ Max: 87\n+\n+Metrics/ModuleLength:\n+ Enabled: false\n+\n+Metrics/ParameterLists:\n+ CountKeywordArgs: false\n+\n+# Allow non-ASCII characters (e.g. £) in comments\n+Style/AsciiComments:\n+ Enabled: false\n+\n+Style/Alias:\n+ Enabled: true\n+ EnforcedStyle: prefer_alias_method\n+\n+# Use trailing rather than leading dots on multi-line call chains\n+Style/DotPosition:\n+ EnforcedStyle: trailing\n+\n+# Magic encoding comment only relevant on ruby-1.9 or non-utf8\n+Style/Encoding:\n+ Enabled: never\n+\n+Style/Documentation:\n+ Enabled: false\n+\n+Style/FormatString:\n+ EnforcedStyle: sprintf\n+\n+Style/FrozenStringLiteralComment:\n+ Enabled: always\n+\n+Style/TrailingCommaInLiteral:\n+ EnforcedStyleForMultiline: comma\n+\n+Style/TrailingCommaInArguments:\n+ EnforcedStyleForMultiline: comma\n+\n+# As of 0.43.0 this cop complains in situations where a guard clause would be\n+# unhelpful or erroneous.\n+# The auto-correct is also buggy.\n+Style/GuardClause:\n+ Enabled: false\n+\n+Style/IndentArray:\n+ EnforcedStyle: consistent\n+\n+Style/IndentHash:\n+ EnforcedStyle: consistent\n+\n+Style/Lambda:\n+ EnforcedStyle: literal\n+\n+Style/MultilineMethodCallIndentation:\n+ EnforcedStyle: indented\n+\n+Style/MultilineOperationIndentation:\n+ EnforcedStyle: indented\n+\n+Style/NumericPredicate:\n+ Exclude:\n+ - 'spec/**/*'\n+\n+Style/NumericLiterals:\n+ MinDigits: 11\n+\n+# As of 0.43.0 this cop has many false positives\n+# https://github.com/bbatsov/rubocop/pull/3517 may fix a lot of these\n+Style/SafeNavigation:\n+ Enabled: false\n+\n+Style/SignalException:\n+ EnforcedStyle: 'only_raise'\n+\n+# Wants you to use the same argument names for every reduce. This seems kinda\n+# naff compared to naming them semantically\n+Style/SingleLineBlockParams:\n+ Enabled: false\n+\n+Style/StringLiterals:\n+ EnforcedStyle: 'double_quotes'\n+\n+Style/VariableNumber:\n+ Enabled: false\n+\n+Style/FileName:\n+ Exclude:\n+ - 'Gemfile'" - }, - { - "sha": "b4e2a20bb6069d33479542fc863e7e36810e0f01", - "filename": "Gemfile", - "status": "modified", - "additions": 1, - "deletions": 1, - "changes": 2, - "blob_url": "https://github.com/gocardless/business/blob/ace90dc4d34136a5d9570e54288c505711fb93ce/Gemfile", - "raw_url": "https://github.com/gocardless/business/raw/ace90dc4d34136a5d9570e54288c505711fb93ce/Gemfile", - "contents_url": "https://api.github.com/repos/gocardless/business/contents/Gemfile?ref=ace90dc4d34136a5d9570e54288c505711fb93ce", - "patch": "@@ -1,3 +1,3 @@\n-source 'https://rubygems.org'\n+source \"https://rubygems.org\"\n \n gemspec" - }, - { - "sha": "a865ee8ed704d8f89d45fbdde6d71f8ba16818d9", - "filename": "business.gemspec", - "status": "modified", - "additions": 6, - "deletions": 6, - "changes": 12, - "blob_url": "https://github.com/gocardless/business/blob/ace90dc4d34136a5d9570e54288c505711fb93ce/business.gemspec", - "raw_url": "https://github.com/gocardless/business/raw/ace90dc4d34136a5d9570e54288c505711fb93ce/business.gemspec", - "contents_url": "https://api.github.com/repos/gocardless/business/contents/business.gemspec?ref=ace90dc4d34136a5d9570e54288c505711fb93ce", - "patch": "@@ -1,23 +1,23 @@\n-# coding: utf-8\n-lib = File.expand_path('../lib', __FILE__)\n+lib = File.expand_path(\"../lib\", __FILE__)\n $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n-require 'business/version'\n+require \"business/version\"\n \n Gem::Specification.new do |spec|\n spec.name = \"business\"\n spec.version = Business::VERSION\n spec.authors = [\"Harry Marr\"]\n spec.email = [\"developers@gocardless.com\"]\n- spec.summary = %q{Date calculations based on business calendars}\n- spec.description = %q{Date calculations based on business calendars}\n+ spec.summary = \"Date calculations based on business calendars\"\n+ spec.description = \"Date calculations based on business calendars\"\n spec.homepage = \"https://github.com/gocardless/business\"\n spec.licenses = [\"MIT\"]\n \n- spec.files = `git ls-files`.split($/)\n+ spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)\n spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }\n spec.test_files = spec.files.grep(%r{^(test|spec|features)/})\n spec.require_paths = [\"lib\"]\n \n spec.add_development_dependency \"bundler\", \"~> 1.3\"\n spec.add_development_dependency \"rspec\", \"~> 3.1\"\n+ spec.add_development_dependency \"rubocop\", \"~> 0.49.1\"\n end" - }, - { - "sha": "9b9f15d9ef5ad322cbb2d36a7b24d744fa4da2c2", - "filename": "lib/business.rb", - "status": "modified", - "additions": 1, - "deletions": 1, - "changes": 2, - "blob_url": "https://github.com/gocardless/business/blob/ace90dc4d34136a5d9570e54288c505711fb93ce/lib/business.rb", - "raw_url": "https://github.com/gocardless/business/raw/ace90dc4d34136a5d9570e54288c505711fb93ce/lib/business.rb", - "contents_url": "https://api.github.com/repos/gocardless/business/contents/lib/business.rb?ref=ace90dc4d34136a5d9570e54288c505711fb93ce", - "patch": "@@ -1 +1 @@\n-require 'business/calendar'\n+require \"business/calendar\"" - }, - { - "sha": "9c1286a151f1762c071ebd35c8099c6bdceec7b1", - "filename": "lib/business/calendar.rb", - "status": "modified", - "additions": 25, - "deletions": 29, - "changes": 54, - "blob_url": "https://github.com/gocardless/business/blob/ace90dc4d34136a5d9570e54288c505711fb93ce/lib/business/calendar.rb", - "raw_url": "https://github.com/gocardless/business/raw/ace90dc4d34136a5d9570e54288c505711fb93ce/lib/business/calendar.rb", - "contents_url": "https://api.github.com/repos/gocardless/business/contents/lib/business/calendar.rb?ref=ace90dc4d34136a5d9570e54288c505711fb93ce", - "patch": "@@ -1,4 +1,4 @@\n-require 'yaml'\n+require \"yaml\"\n \n module Business\n class Calendar\n@@ -8,45 +8,43 @@ class << self\n \n def self.calendar_directories\n directories = @additional_load_paths || []\n- directories + [File.join(File.dirname(__FILE__), 'data')]\n+ directories + [File.join(File.dirname(__FILE__), \"data\")]\n end\n private_class_method :calendar_directories\n \n def self.load(calendar)\n directory = calendar_directories.find do |dir|\n- File.exists?(File.join(dir, \"#{calendar}.yml\"))\n+ File.exist?(File.join(dir, \"#{calendar}.yml\"))\n end\n raise \"No such calendar '#{calendar}'\" unless directory\n \n yaml = YAML.load_file(File.join(directory, \"#{calendar}.yml\"))\n- self.new(holidays: yaml['holidays'], working_days: yaml['working_days'])\n+ new(holidays: yaml[\"holidays\"], working_days: yaml[\"working_days\"])\n end\n \n @lock = Mutex.new\n def self.load_cached(calendar)\n @lock.synchronize do\n- @cache ||= { }\n- unless @cache.include?(calendar)\n- @cache[calendar] = self.load(calendar)\n- end\n+ @cache ||= {}\n+ @cache[calendar] = load(calendar) unless @cache.include?(calendar)\n @cache[calendar]\n end\n end\n \n- DAY_NAMES = %( mon tue wed thu fri sat sun )\n+ DAY_NAMES = %( mon tue wed thu fri sat sun ).freeze\n \n attr_reader :working_days, :holidays\n \n def initialize(config)\n- set_working_days(config[:working_days])\n- set_holidays(config[:holidays])\n+ self.working_days = config[:working_days]\n+ self.holidays = config[:holidays]\n end\n \n # Return true if the date given is a business day (typically that means a\n # non-weekend day) and not a holiday.\n def business_day?(date)\n date = date.to_date\n- return false unless working_days.include?(date.strftime('%a').downcase)\n+ return false unless working_days.include?(date.strftime(\"%a\").downcase)\n return false if holidays.include?(date)\n true\n end\n@@ -70,18 +68,20 @@ def roll_backward(date)\n # Roll forward to the next business day regardless of whether the given\n # date is a business day or not.\n def next_business_day(date)\n- begin\n+ loop do\n date += day_interval_for(date)\n- end until business_day?(date)\n+ break if business_day?(date)\n+ end\n date\n end\n \n # Roll backward to the previous business day regardless of whether the given\n # date is a business day or not.\n def previous_business_day(date)\n- begin\n+ loop do\n date -= day_interval_for(date)\n- end until business_day?(date)\n+ break if business_day?(date)\n+ end\n date\n end\n \n@@ -93,9 +93,7 @@ def previous_business_day(date)\n def add_business_days(date, delta)\n date = roll_forward(date)\n delta.times do\n- begin\n- date += day_interval_for(date)\n- end until business_day?(date)\n+ date = next_business_day(date)\n end\n date\n end\n@@ -108,9 +106,7 @@ def add_business_days(date, delta)\n def subtract_business_days(date, delta)\n date = roll_backward(date)\n delta.times do\n- begin\n- date -= day_interval_for(date)\n- end until business_day?(date)\n+ date = previous_business_day(date)\n end\n date\n end\n@@ -119,7 +115,8 @@ def subtract_business_days(date, delta)\n # This method counts from start of date1 to start of date2. So,\n # business_days_between(mon, weds) = 2 (assuming no holidays)\n def business_days_between(date1, date2)\n- date1, date2 = date1.to_date, date2.to_date\n+ date1 = date1.to_date\n+ date2 = date2.to_date\n \n # To optimise this method we split the range into full weeks and a\n # remaining period.\n@@ -141,11 +138,11 @@ def business_days_between(date1, date2)\n num_biz_days -= holidays.count do |holiday|\n in_range = full_weeks_range.cover?(holiday)\n # Only pick a holiday if its on a working day (e.g., not a weekend)\n- on_biz_day = working_days.include?(holiday.strftime('%a').downcase)\n+ on_biz_day = working_days.include?(holiday.strftime(\"%a\").downcase)\n in_range && on_biz_day\n end\n \n- remaining_range = (date2-remaining_days...date2)\n+ remaining_range = (date2 - remaining_days...date2)\n # Loop through each day in remaining_range and count if a business day\n num_biz_days + remaining_range.count { |a| business_day?(a) }\n end\n@@ -155,7 +152,7 @@ def day_interval_for(date)\n end\n \n # Internal method for assigning working days from a calendar config.\n- def set_working_days(working_days)\n+ def working_days=(working_days)\n @working_days = (working_days || default_working_days).map do |day|\n day.downcase.strip[0..2].tap do |normalised_day|\n raise \"Invalid day #{day}\" unless DAY_NAMES.include?(normalised_day)\n@@ -164,14 +161,13 @@ def set_working_days(working_days)\n end\n \n # Internal method for assigning holidays from a calendar config.\n- def set_holidays(holidays)\n+ def holidays=(holidays)\n @holidays = (holidays || []).map { |holiday| Date.parse(holiday) }\n end\n \n # If no working days are provided in the calendar config, these are used.\n def default_working_days\n- %w( mon tue wed thu fri )\n+ %w[mon tue wed thu fri]\n end\n end\n end\n-" - }, - { - "sha": "a9660d509b677e0f9b22b93a130e725ea58bcf33", - "filename": "lib/business/version.rb", - "status": "modified", - "additions": 1, - "deletions": 1, - "changes": 2, - "blob_url": "https://github.com/gocardless/business/blob/ace90dc4d34136a5d9570e54288c505711fb93ce/lib/business/version.rb", - "raw_url": "https://github.com/gocardless/business/raw/ace90dc4d34136a5d9570e54288c505711fb93ce/lib/business/version.rb", - "contents_url": "https://api.github.com/repos/gocardless/business/contents/lib/business/version.rb?ref=ace90dc4d34136a5d9570e54288c505711fb93ce", - "patch": "@@ -1,3 +1,3 @@\n module Business\n- VERSION = \"1.8.0\"\n+ VERSION = \"1.8.0\".freeze\n end" - }, - { - "sha": "628f77d81a1fbf6b7061b6570dfa0ed02f7988c2", - "filename": "spec/calendar_spec.rb", - "status": "modified", - "additions": 9, - "deletions": 13, - "changes": 22, - "blob_url": "https://github.com/gocardless/business/blob/ace90dc4d34136a5d9570e54288c505711fb93ce/spec/calendar_spec.rb", - "raw_url": "https://github.com/gocardless/business/raw/ace90dc4d34136a5d9570e54288c505711fb93ce/spec/calendar_spec.rb", - "contents_url": "https://api.github.com/repos/gocardless/business/contents/spec/calendar_spec.rb?ref=ace90dc4d34136a5d9570e54288c505711fb93ce", - "patch": "@@ -24,7 +24,7 @@\n context \"when given a calendar from a custom directory\" do\n before do\n Business::Calendar.additional_load_paths = [\n- File.join(File.dirname(__FILE__), 'fixtures', 'calendars')\n+ File.join(File.dirname(__FILE__), \"fixtures\", \"calendars\"),\n ]\n end\n after { Business::Calendar.additional_load_paths = nil }\n@@ -55,29 +55,29 @@\n end\n end\n \n- describe \"#set_working_days\" do\n+ describe \"#working_days=\" do\n let(:calendar) { Business::Calendar.new({}) }\n let(:working_days) { [] }\n- subject { calendar.set_working_days(working_days) }\n+ subject { calendar.working_days = working_days }\n \n context \"when given valid working days\" do\n- let(:working_days) { %w( mon fri ) }\n+ let(:working_days) { %w[mon fri] }\n before { subject }\n \n it \"assigns them\" do\n expect(calendar.working_days).to eq(working_days)\n end\n \n context \"that are unnormalised\" do\n- let(:working_days) { %w( Monday Friday ) }\n+ let(:working_days) { %w[Monday Friday] }\n it \"normalises them\" do\n- expect(calendar.working_days).to eq(%w( mon fri ))\n+ expect(calendar.working_days).to eq(%w[mon fri])\n end\n end\n end\n \n context \"when given an invalid business day\" do\n- let(:working_days) { %w( Notaday ) }\n+ let(:working_days) { %w[Notaday] }\n specify { expect { subject }.to raise_error(/Invalid day/) }\n end\n \n@@ -89,10 +89,10 @@\n end\n end\n \n- describe \"#set_holidays\" do\n+ describe \"#holidays=\" do\n let(:calendar) { Business::Calendar.new({}) }\n let(:holidays) { [] }\n- before { calendar.set_holidays(holidays) }\n+ before { calendar.holidays = holidays }\n subject { calendar.holidays }\n \n context \"when given valid business days\" do\n@@ -300,7 +300,6 @@\n let(:calendar) { Business::Calendar.new(holidays: holidays) }\n subject { calendar.business_days_between(date_1, date_2) }\n \n-\n context \"starting on a business day\" do\n let(:date_1) { date_class.parse(\"Mon 2/6/2014\") }\n \n@@ -357,7 +356,6 @@\n let(:date_1) { date_class.parse(\"Sat 7/6/2014\") }\n \n context \"ending on a business day\" do\n-\n context \"including only business days & weekend days\" do\n let(:date_2) { date_class.parse(\"Mon 9/6/2014\") }\n it { is_expected.to eq(0) }\n@@ -393,7 +391,6 @@\n let(:date_1) { date_class.parse(\"Thu 12/6/2014\") }\n \n context \"ending on a business day\" do\n-\n context \"including only business days & holidays\" do\n let(:date_2) { date_class.parse(\"Fri 13/6/2014\") }\n it { is_expected.to eq(0) }\n@@ -462,4 +459,3 @@\n it_behaves_like \"common\"\n end\n end\n-" - } - ] -} diff --git a/dep/spec/fixtures/github/commit_compare_identical.json b/dep/spec/fixtures/github/commit_compare_identical.json deleted file mode 100644 index 38dfe81fb8..0000000000 --- a/dep/spec/fixtures/github/commit_compare_identical.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "url": "https://api.github.com/repos/golang/text/compare/v0.3.0...v0.3.0", - "html_url": "https://github.com/golang/text/compare/v0.3.0...v0.3.0", - "permalink_url": "https://github.com/golang/text/compare/golang:f21a4df...golang:f21a4df", - "diff_url": "https://github.com/golang/text/compare/v0.3.0...v0.3.0.diff", - "patch_url": "https://github.com/golang/text/compare/v0.3.0...v0.3.0.patch", - "base_commit": { - "sha": "f21a4dfb5e38f5895301dc265a8def02365cc3d0", - "node_id": "MDY6Q29tbWl0Mjc1MjIyOTU6ZjIxYTRkZmI1ZTM4ZjU4OTUzMDFkYzI2NWE4ZGVmMDIzNjVjYzNkMA==", - "commit": { - "author": { - "name": "Marcel van Lohuizen", - "email": "mpvl@golang.org", - "date": "2017-12-09T17:05:50Z" - }, - "committer": { - "name": "Marcel van Lohuizen", - "email": "mpvl@golang.org", - "date": "2017-12-14T13:08:43Z" - }, - "message": "all: upgrade to CLDR 32\n\nChange-Id: I80ba02e97f8c9a6bc364cf8679b90aee13a1ce23\nReviewed-on: https://go-review.googlesource.com/82905\nRun-TryBot: Marcel van Lohuizen \nTryBot-Result: Gobot Gobot \nReviewed-by: Nigel Tao ", - "tree": { - "sha": "d495a1fe53fe3fd1794be36b4a4c8d835254db7b", - "url": "https://api.github.com/repos/golang/text/git/trees/d495a1fe53fe3fd1794be36b4a4c8d835254db7b" - }, - "url": "https://api.github.com/repos/golang/text/git/commits/f21a4dfb5e38f5895301dc265a8def02365cc3d0", - "comment_count": 0, - "verification": { - "verified": false, - "reason": "unsigned", - "signature": null, - "payload": null - } - }, - "url": "https://api.github.com/repos/golang/text/commits/f21a4dfb5e38f5895301dc265a8def02365cc3d0", - "html_url": "https://github.com/golang/text/commit/f21a4dfb5e38f5895301dc265a8def02365cc3d0", - "comments_url": "https://api.github.com/repos/golang/text/commits/f21a4dfb5e38f5895301dc265a8def02365cc3d0/comments", - "author": { - "login": "mpvl", - "id": 6445383, - "node_id": "MDQ6VXNlcjY0NDUzODM=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6445383?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/mpvl", - "html_url": "https://github.com/mpvl", - "followers_url": "https://api.github.com/users/mpvl/followers", - "following_url": "https://api.github.com/users/mpvl/following{/other_user}", - "gists_url": "https://api.github.com/users/mpvl/gists{/gist_id}", - "starred_url": "https://api.github.com/users/mpvl/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/mpvl/subscriptions", - "organizations_url": "https://api.github.com/users/mpvl/orgs", - "repos_url": "https://api.github.com/users/mpvl/repos", - "events_url": "https://api.github.com/users/mpvl/events{/privacy}", - "received_events_url": "https://api.github.com/users/mpvl/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "mpvl", - "id": 6445383, - "node_id": "MDQ6VXNlcjY0NDUzODM=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6445383?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/mpvl", - "html_url": "https://github.com/mpvl", - "followers_url": "https://api.github.com/users/mpvl/followers", - "following_url": "https://api.github.com/users/mpvl/following{/other_user}", - "gists_url": "https://api.github.com/users/mpvl/gists{/gist_id}", - "starred_url": "https://api.github.com/users/mpvl/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/mpvl/subscriptions", - "organizations_url": "https://api.github.com/users/mpvl/orgs", - "repos_url": "https://api.github.com/users/mpvl/repos", - "events_url": "https://api.github.com/users/mpvl/events{/privacy}", - "received_events_url": "https://api.github.com/users/mpvl/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "d5f0155fc124972d018bea023348f2bd9e1d341e", - "url": "https://api.github.com/repos/golang/text/commits/d5f0155fc124972d018bea023348f2bd9e1d341e", - "html_url": "https://github.com/golang/text/commit/d5f0155fc124972d018bea023348f2bd9e1d341e" - } - ] - }, - "merge_base_commit": { - "sha": "f21a4dfb5e38f5895301dc265a8def02365cc3d0", - "node_id": "MDY6Q29tbWl0Mjc1MjIyOTU6ZjIxYTRkZmI1ZTM4ZjU4OTUzMDFkYzI2NWE4ZGVmMDIzNjVjYzNkMA==", - "commit": { - "author": { - "name": "Marcel van Lohuizen", - "email": "mpvl@golang.org", - "date": "2017-12-09T17:05:50Z" - }, - "committer": { - "name": "Marcel van Lohuizen", - "email": "mpvl@golang.org", - "date": "2017-12-14T13:08:43Z" - }, - "message": "all: upgrade to CLDR 32\n\nChange-Id: I80ba02e97f8c9a6bc364cf8679b90aee13a1ce23\nReviewed-on: https://go-review.googlesource.com/82905\nRun-TryBot: Marcel van Lohuizen \nTryBot-Result: Gobot Gobot \nReviewed-by: Nigel Tao ", - "tree": { - "sha": "d495a1fe53fe3fd1794be36b4a4c8d835254db7b", - "url": "https://api.github.com/repos/golang/text/git/trees/d495a1fe53fe3fd1794be36b4a4c8d835254db7b" - }, - "url": "https://api.github.com/repos/golang/text/git/commits/f21a4dfb5e38f5895301dc265a8def02365cc3d0", - "comment_count": 0, - "verification": { - "verified": false, - "reason": "unsigned", - "signature": null, - "payload": null - } - }, - "url": "https://api.github.com/repos/golang/text/commits/f21a4dfb5e38f5895301dc265a8def02365cc3d0", - "html_url": "https://github.com/golang/text/commit/f21a4dfb5e38f5895301dc265a8def02365cc3d0", - "comments_url": "https://api.github.com/repos/golang/text/commits/f21a4dfb5e38f5895301dc265a8def02365cc3d0/comments", - "author": { - "login": "mpvl", - "id": 6445383, - "node_id": "MDQ6VXNlcjY0NDUzODM=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6445383?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/mpvl", - "html_url": "https://github.com/mpvl", - "followers_url": "https://api.github.com/users/mpvl/followers", - "following_url": "https://api.github.com/users/mpvl/following{/other_user}", - "gists_url": "https://api.github.com/users/mpvl/gists{/gist_id}", - "starred_url": "https://api.github.com/users/mpvl/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/mpvl/subscriptions", - "organizations_url": "https://api.github.com/users/mpvl/orgs", - "repos_url": "https://api.github.com/users/mpvl/repos", - "events_url": "https://api.github.com/users/mpvl/events{/privacy}", - "received_events_url": "https://api.github.com/users/mpvl/received_events", - "type": "User", - "site_admin": false - }, - "committer": { - "login": "mpvl", - "id": 6445383, - "node_id": "MDQ6VXNlcjY0NDUzODM=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6445383?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/mpvl", - "html_url": "https://github.com/mpvl", - "followers_url": "https://api.github.com/users/mpvl/followers", - "following_url": "https://api.github.com/users/mpvl/following{/other_user}", - "gists_url": "https://api.github.com/users/mpvl/gists{/gist_id}", - "starred_url": "https://api.github.com/users/mpvl/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/mpvl/subscriptions", - "organizations_url": "https://api.github.com/users/mpvl/orgs", - "repos_url": "https://api.github.com/users/mpvl/repos", - "events_url": "https://api.github.com/users/mpvl/events{/privacy}", - "received_events_url": "https://api.github.com/users/mpvl/received_events", - "type": "User", - "site_admin": false - }, - "parents": [ - { - "sha": "d5f0155fc124972d018bea023348f2bd9e1d341e", - "url": "https://api.github.com/repos/golang/text/commits/d5f0155fc124972d018bea023348f2bd9e1d341e", - "html_url": "https://github.com/golang/text/commit/d5f0155fc124972d018bea023348f2bd9e1d341e" - } - ] - }, - "status": "identical", - "ahead_by": 0, - "behind_by": 0, - "total_commits": 0, - "commits": [ - - ], - "files": [ - - ] -} diff --git a/dep/spec/fixtures/github/contents_go_app.json b/dep/spec/fixtures/github/contents_go_app.json deleted file mode 100644 index f9f94a7cb0..0000000000 --- a/dep/spec/fixtures/github/contents_go_app.json +++ /dev/null @@ -1,242 +0,0 @@ -[ - { - "name": ".gitignore", - "path": ".gitignore", - "sha": "7e91b6639922ea70f2883ce6db4238158f0e37bc", - "size": 29, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/.gitignore?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/blob/master/.gitignore", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/7e91b6639922ea70f2883ce6db4238158f0e37bc", - "download_url": "https://raw.githubusercontent.com/fubarhouse/drubuild/master/.gitignore", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/.gitignore?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/7e91b6639922ea70f2883ce6db4238158f0e37bc", - "html": "https://github.com/fubarhouse/drubuild/blob/master/.gitignore" - } - }, - { - "name": "Gopkg.lock", - "path": "Gopkg.lock", - "sha": "a67e32e5016a0c87370ab615a2e425aaf428700a", - "size": 6328, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/Gopkg.lock?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/blob/master/Gopkg.lock", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/a67e32e5016a0c87370ab615a2e425aaf428700a", - "download_url": "https://raw.githubusercontent.com/fubarhouse/drubuild/master/Gopkg.lock", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/Gopkg.lock?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/a67e32e5016a0c87370ab615a2e425aaf428700a", - "html": "https://github.com/fubarhouse/drubuild/blob/master/Gopkg.lock" - } - }, - { - "name": "Gopkg.toml", - "path": "Gopkg.toml", - "sha": "e82880283ab7883139621a9ac5e0e0d726e99830", - "size": 687, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/Gopkg.toml?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/blob/master/Gopkg.toml", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/e82880283ab7883139621a9ac5e0e0d726e99830", - "download_url": "https://raw.githubusercontent.com/fubarhouse/drubuild/master/Gopkg.toml", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/Gopkg.toml?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/e82880283ab7883139621a9ac5e0e0d726e99830", - "html": "https://github.com/fubarhouse/drubuild/blob/master/Gopkg.toml" - } - }, - { - "name": "LICENSE", - "path": "LICENSE", - "sha": "a72e778c43dfa8f21e3f0523df00362acc18d367", - "size": 1080, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/LICENSE?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/blob/master/LICENSE", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/a72e778c43dfa8f21e3f0523df00362acc18d367", - "download_url": "https://raw.githubusercontent.com/fubarhouse/drubuild/master/LICENSE", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/LICENSE?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/a72e778c43dfa8f21e3f0523df00362acc18d367", - "html": "https://github.com/fubarhouse/drubuild/blob/master/LICENSE" - } - }, - { - "name": "README.md", - "path": "README.md", - "sha": "d5eea791577773aeb5f3df32c0b5db2ca144a917", - "size": 17991, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/README.md?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/blob/master/README.md", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/d5eea791577773aeb5f3df32c0b5db2ca144a917", - "download_url": "https://raw.githubusercontent.com/fubarhouse/drubuild/master/README.md", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/README.md?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/d5eea791577773aeb5f3df32c0b5db2ca144a917", - "html": "https://github.com/fubarhouse/drubuild/blob/master/README.md" - } - }, - { - "name": "alias", - "path": "alias", - "sha": "734729db20202ea30874b002bf0fa045811f2b3f", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/alias?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/alias", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/734729db20202ea30874b002bf0fa045811f2b3f", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/alias?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/734729db20202ea30874b002bf0fa045811f2b3f", - "html": "https://github.com/fubarhouse/drubuild/tree/master/alias" - } - }, - { - "name": "aliases", - "path": "aliases", - "sha": "e85fe9dbbb9a4f3a0d66c699c7d06e3118845d1a", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/aliases?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/aliases", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/e85fe9dbbb9a4f3a0d66c699c7d06e3118845d1a", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/aliases?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/e85fe9dbbb9a4f3a0d66c699c7d06e3118845d1a", - "html": "https://github.com/fubarhouse/drubuild/tree/master/aliases" - } - }, - { - "name": "cmd", - "path": "cmd", - "sha": "f261ba43c83621b43057be3eef1dd8f5e5ed4146", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/cmd?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/cmd", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/f261ba43c83621b43057be3eef1dd8f5e5ed4146", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/cmd?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/f261ba43c83621b43057be3eef1dd8f5e5ed4146", - "html": "https://github.com/fubarhouse/drubuild/tree/master/cmd" - } - }, - { - "name": "command", - "path": "command", - "sha": "f6e3bdc0588698a9ff866b47b2269a0f09853874", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/command?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/command", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/f6e3bdc0588698a9ff866b47b2269a0f09853874", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/command?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/f6e3bdc0588698a9ff866b47b2269a0f09853874", - "html": "https://github.com/fubarhouse/drubuild/tree/master/command" - } - }, - { - "name": "commandlist", - "path": "commandlist", - "sha": "245c319d66325245bf2a0edc18b36abf167c97b7", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/commandlist?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/commandlist", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/245c319d66325245bf2a0edc18b36abf167c97b7", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/commandlist?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/245c319d66325245bf2a0edc18b36abf167c97b7", - "html": "https://github.com/fubarhouse/drubuild/tree/master/commandlist" - } - }, - { - "name": "composer", - "path": "composer", - "sha": "516cbce2375b703b4b247ff9032ccca622049600", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/composer?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/composer", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/516cbce2375b703b4b247ff9032ccca622049600", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/composer?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/516cbce2375b703b4b247ff9032ccca622049600", - "html": "https://github.com/fubarhouse/drubuild/tree/master/composer" - } - }, - { - "name": "main.go", - "path": "main.go", - "sha": "88e3091a8e0f00d7af1ef2d9bef6f61521b49829", - "size": 696, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/main.go?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/blob/master/main.go", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/88e3091a8e0f00d7af1ef2d9bef6f61521b49829", - "download_url": "https://raw.githubusercontent.com/fubarhouse/drubuild/master/main.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/main.go?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/blobs/88e3091a8e0f00d7af1ef2d9bef6f61521b49829", - "html": "https://github.com/fubarhouse/drubuild/blob/master/main.go" - } - }, - { - "name": "make", - "path": "make", - "sha": "a18edaace3ac19d6daaccc6ffe5b97b4afcd92d5", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/make?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/make", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/a18edaace3ac19d6daaccc6ffe5b97b4afcd92d5", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/make?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/a18edaace3ac19d6daaccc6ffe5b97b4afcd92d5", - "html": "https://github.com/fubarhouse/drubuild/tree/master/make" - } - }, - { - "name": "user", - "path": "user", - "sha": "bd578b8457dd84a2da03d6b648a34c26c2a7c4a1", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/user?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/user", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/bd578b8457dd84a2da03d6b648a34c26c2a7c4a1", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/user?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/bd578b8457dd84a2da03d6b648a34c26c2a7c4a1", - "html": "https://github.com/fubarhouse/drubuild/tree/master/user" - } - }, - { - "name": "vhost", - "path": "vhost", - "sha": "99c21b67c1c7393ba95c0f7c5712a454d7c20980", - "size": 0, - "url": "https://api.github.com/repos/fubarhouse/drubuild/contents/vhost?ref=master", - "html_url": "https://github.com/fubarhouse/drubuild/tree/master/vhost", - "git_url": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/99c21b67c1c7393ba95c0f7c5712a454d7c20980", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/fubarhouse/drubuild/contents/vhost?ref=master", - "git": "https://api.github.com/repos/fubarhouse/drubuild/git/trees/99c21b67c1c7393ba95c0f7c5712a454d7c20980", - "html": "https://github.com/fubarhouse/drubuild/tree/master/vhost" - } - } -] diff --git a/dep/spec/fixtures/github/contents_go_library.json b/dep/spec/fixtures/github/contents_go_library.json deleted file mode 100644 index 2d7bab4f2e..0000000000 --- a/dep/spec/fixtures/github/contents_go_library.json +++ /dev/null @@ -1,546 +0,0 @@ -[ - { - "name": "Gopkg.toml", - "path": "Gopkg.toml", - "sha": "66be63a00578abc9791f1f1f765676303aea185b", - "size": 7, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/Gopkg.toml?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/Gopkg.toml", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/Gopkg.toml", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/Gopkg.toml?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "html": "https://github.com/sirupsen/logrus/blob/master/Gopkg.toml" - } - }, - { - "name": "Gopkg.lock", - "path": "Gopkg.lock", - "sha": "66be63a00578abc9791f1f1f765676303aea185b", - "size": 7, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/Gopkg.lock?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/Gopkg.lock", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/Gopkg.lock", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/Gopkg.lock?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "html": "https://github.com/sirupsen/logrus/blob/master/Gopkg.lock" - } - }, - { - "name": ".gitignore", - "path": ".gitignore", - "sha": "66be63a00578abc9791f1f1f765676303aea185b", - "size": 7, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/.gitignore?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/.gitignore", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/.gitignore", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/.gitignore?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "html": "https://github.com/sirupsen/logrus/blob/master/.gitignore" - } - }, - { - "name": ".travis.yml", - "path": ".travis.yml", - "sha": "2f19b4a757a94141dd474fd3bd908e425b7beae7", - "size": 296, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/.travis.yml?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/.travis.yml", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/2f19b4a757a94141dd474fd3bd908e425b7beae7", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/.travis.yml", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/.travis.yml?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/2f19b4a757a94141dd474fd3bd908e425b7beae7", - "html": "https://github.com/sirupsen/logrus/blob/master/.travis.yml" - } - }, - { - "name": "CHANGELOG.md", - "path": "CHANGELOG.md", - "sha": "1bd1deb294752a1764352ee708af687ca7ad9ae3", - "size": 2658, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/CHANGELOG.md?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/1bd1deb294752a1764352ee708af687ca7ad9ae3", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/CHANGELOG.md", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/CHANGELOG.md?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/1bd1deb294752a1764352ee708af687ca7ad9ae3", - "html": "https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md" - } - }, - { - "name": "LICENSE", - "path": "LICENSE", - "sha": "f090cb42f370bda9e7f4f58d9b8b8ee2750c115f", - "size": 1082, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/LICENSE?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/LICENSE", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/f090cb42f370bda9e7f4f58d9b8b8ee2750c115f", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/LICENSE", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/LICENSE?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/f090cb42f370bda9e7f4f58d9b8b8ee2750c115f", - "html": "https://github.com/sirupsen/logrus/blob/master/LICENSE" - } - }, - { - "name": "README.md", - "path": "README.md", - "sha": "072e99be3137632f64c1bf57c49a67a199f74026", - "size": 16754, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/README.md?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/README.md", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/072e99be3137632f64c1bf57c49a67a199f74026", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/README.md", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/README.md?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/072e99be3137632f64c1bf57c49a67a199f74026", - "html": "https://github.com/sirupsen/logrus/blob/master/README.md" - } - }, - { - "name": "alt_exit.go", - "path": "alt_exit.go", - "sha": "8af90637a99e61a5f55df746e1f916b4b0ffab06", - "size": 2246, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/alt_exit.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/alt_exit.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/8af90637a99e61a5f55df746e1f916b4b0ffab06", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/alt_exit.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/alt_exit.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/8af90637a99e61a5f55df746e1f916b4b0ffab06", - "html": "https://github.com/sirupsen/logrus/blob/master/alt_exit.go" - } - }, - { - "name": "alt_exit_test.go", - "path": "alt_exit_test.go", - "sha": "a08b1a898f665878347a19952ab3037afc66ea62", - "size": 1623, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/alt_exit_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/alt_exit_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a08b1a898f665878347a19952ab3037afc66ea62", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/alt_exit_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/alt_exit_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a08b1a898f665878347a19952ab3037afc66ea62", - "html": "https://github.com/sirupsen/logrus/blob/master/alt_exit_test.go" - } - }, - { - "name": "appveyor.yml", - "path": "appveyor.yml", - "sha": "96c2ce15f842b92c87952ba5702d33c37ccf1344", - "size": 281, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/appveyor.yml?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/appveyor.yml", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/96c2ce15f842b92c87952ba5702d33c37ccf1344", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/appveyor.yml", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/appveyor.yml?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/96c2ce15f842b92c87952ba5702d33c37ccf1344", - "html": "https://github.com/sirupsen/logrus/blob/master/appveyor.yml" - } - }, - { - "name": "doc.go", - "path": "doc.go", - "sha": "da67aba06debf6721a2d97604145aa09ac257e19", - "size": 586, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/doc.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/doc.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/da67aba06debf6721a2d97604145aa09ac257e19", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/doc.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/doc.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/da67aba06debf6721a2d97604145aa09ac257e19", - "html": "https://github.com/sirupsen/logrus/blob/master/doc.go" - } - }, - { - "name": "entry.go", - "path": "entry.go", - "sha": "c2b2e493d8814cce43b09eeeedf408d931df4b21", - "size": 7462, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/entry.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/entry.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/c2b2e493d8814cce43b09eeeedf408d931df4b21", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/entry.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/entry.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/c2b2e493d8814cce43b09eeeedf408d931df4b21", - "html": "https://github.com/sirupsen/logrus/blob/master/entry.go" - } - }, - { - "name": "entry_test.go", - "path": "entry_test.go", - "sha": "a81e2b3834cfe89b77bd99f5d2bfba8b14d6e4ac", - "size": 2126, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/entry_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/entry_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a81e2b3834cfe89b77bd99f5d2bfba8b14d6e4ac", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/entry_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/entry_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a81e2b3834cfe89b77bd99f5d2bfba8b14d6e4ac", - "html": "https://github.com/sirupsen/logrus/blob/master/entry_test.go" - } - }, - { - "name": "example_basic_test.go", - "path": "example_basic_test.go", - "sha": "a2acf550c95dfecb11132ec8578d2b6ef8d4c560", - "size": 2042, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/example_basic_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/example_basic_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a2acf550c95dfecb11132ec8578d2b6ef8d4c560", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/example_basic_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/example_basic_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a2acf550c95dfecb11132ec8578d2b6ef8d4c560", - "html": "https://github.com/sirupsen/logrus/blob/master/example_basic_test.go" - } - }, - { - "name": "example_hook_test.go", - "path": "example_hook_test.go", - "sha": "d4ddffca37ffe59a15a670d50a9c285a108c2e32", - "size": 1001, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/example_hook_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/example_hook_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/d4ddffca37ffe59a15a670d50a9c285a108c2e32", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/example_hook_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/example_hook_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/d4ddffca37ffe59a15a670d50a9c285a108c2e32", - "html": "https://github.com/sirupsen/logrus/blob/master/example_hook_test.go" - } - }, - { - "name": "exported.go", - "path": "exported.go", - "sha": "eb612a6f3e8a87ef7dd297c61396acf972dec2b3", - "size": 5283, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/exported.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/exported.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/eb612a6f3e8a87ef7dd297c61396acf972dec2b3", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/exported.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/exported.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/eb612a6f3e8a87ef7dd297c61396acf972dec2b3", - "html": "https://github.com/sirupsen/logrus/blob/master/exported.go" - } - }, - { - "name": "formatter.go", - "path": "formatter.go", - "sha": "83c74947beab291bffa8205e6646b35c1ef1536f", - "size": 1603, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/formatter.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/formatter.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/83c74947beab291bffa8205e6646b35c1ef1536f", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/formatter.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/formatter.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/83c74947beab291bffa8205e6646b35c1ef1536f", - "html": "https://github.com/sirupsen/logrus/blob/master/formatter.go" - } - }, - { - "name": "formatter_bench_test.go", - "path": "formatter_bench_test.go", - "sha": "d9481589f5f0e3bce680d81a4766a6f47fae16ed", - "size": 2143, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/formatter_bench_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/formatter_bench_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/d9481589f5f0e3bce680d81a4766a6f47fae16ed", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/formatter_bench_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/formatter_bench_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/d9481589f5f0e3bce680d81a4766a6f47fae16ed", - "html": "https://github.com/sirupsen/logrus/blob/master/formatter_bench_test.go" - } - }, - { - "name": "hook_test.go", - "path": "hook_test.go", - "sha": "4fea7514e1b7bfa9ee0d09c51b2495ec463a30cd", - "size": 2549, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/hook_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/hook_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/4fea7514e1b7bfa9ee0d09c51b2495ec463a30cd", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/hook_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/hook_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/4fea7514e1b7bfa9ee0d09c51b2495ec463a30cd", - "html": "https://github.com/sirupsen/logrus/blob/master/hook_test.go" - } - }, - { - "name": "hooks.go", - "path": "hooks.go", - "sha": "3f151cdc39275a003d6a6e7059b0801071c001a8", - "size": 1101, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/hooks.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/hooks.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3f151cdc39275a003d6a6e7059b0801071c001a8", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/hooks.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/hooks.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3f151cdc39275a003d6a6e7059b0801071c001a8", - "html": "https://github.com/sirupsen/logrus/blob/master/hooks.go" - } - }, - { - "name": "hooks", - "path": "hooks", - "sha": "38f957031349e4a370df3c5fcd11c4db397cd6ec", - "size": 0, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/hooks?ref=master", - "html_url": "https://github.com/sirupsen/logrus/tree/master/hooks", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/trees/38f957031349e4a370df3c5fcd11c4db397cd6ec", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/hooks?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/trees/38f957031349e4a370df3c5fcd11c4db397cd6ec", - "html": "https://github.com/sirupsen/logrus/tree/master/hooks" - } - }, - { - "name": "json_formatter.go", - "path": "json_formatter.go", - "sha": "dab17610f172e45833cd19eb9bfc2a61cbb0e6b1", - "size": 2117, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/json_formatter.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/json_formatter.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dab17610f172e45833cd19eb9bfc2a61cbb0e6b1", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/json_formatter.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/json_formatter.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dab17610f172e45833cd19eb9bfc2a61cbb0e6b1", - "html": "https://github.com/sirupsen/logrus/blob/master/json_formatter.go" - } - }, - { - "name": "json_formatter_test.go", - "path": "json_formatter_test.go", - "sha": "0dde3004cbccc291bc342a52191752fd7f4b4653", - "size": 7011, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/json_formatter_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/json_formatter_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/0dde3004cbccc291bc342a52191752fd7f4b4653", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/json_formatter_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/json_formatter_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/0dde3004cbccc291bc342a52191752fd7f4b4653", - "html": "https://github.com/sirupsen/logrus/blob/master/json_formatter_test.go" - } - }, - { - "name": "logger.go", - "path": "logger.go", - "sha": "342f7977d85b84b2a21797085de4c5a848c0c0e0", - "size": 8373, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/logger.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/logger.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/342f7977d85b84b2a21797085de4c5a848c0c0e0", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/logger.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/logger.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/342f7977d85b84b2a21797085de4c5a848c0c0e0", - "html": "https://github.com/sirupsen/logrus/blob/master/logger.go" - } - }, - { - "name": "logger_bench_test.go", - "path": "logger_bench_test.go", - "sha": "dd23a3535ec9626a00e590bf53f221017fc99f39", - "size": 1344, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/logger_bench_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/logger_bench_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dd23a3535ec9626a00e590bf53f221017fc99f39", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/logger_bench_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/logger_bench_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dd23a3535ec9626a00e590bf53f221017fc99f39", - "html": "https://github.com/sirupsen/logrus/blob/master/logger_bench_test.go" - } - }, - { - "name": "logrus.go", - "path": "logrus.go", - "sha": "dd38999741ed0802ad3d28892abb3c0b60a56c16", - "size": 3667, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/logrus.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/logrus.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dd38999741ed0802ad3d28892abb3c0b60a56c16", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/logrus.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/logrus.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dd38999741ed0802ad3d28892abb3c0b60a56c16", - "html": "https://github.com/sirupsen/logrus/blob/master/logrus.go" - } - }, - { - "name": "logrus_test.go", - "path": "logrus_test.go", - "sha": "57fb8d1c6ecfbb3eac12e3401e6580113e6a8991", - "size": 11148, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/logrus_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/logrus_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/57fb8d1c6ecfbb3eac12e3401e6580113e6a8991", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/logrus_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/logrus_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/57fb8d1c6ecfbb3eac12e3401e6580113e6a8991", - "html": "https://github.com/sirupsen/logrus/blob/master/logrus_test.go" - } - }, - { - "name": "terminal_bsd.go", - "path": "terminal_bsd.go", - "sha": "4880d13d26d803691bc1eccecf02895a5e5c1a3a", - "size": 196, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_bsd.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/terminal_bsd.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/4880d13d26d803691bc1eccecf02895a5e5c1a3a", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/terminal_bsd.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_bsd.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/4880d13d26d803691bc1eccecf02895a5e5c1a3a", - "html": "https://github.com/sirupsen/logrus/blob/master/terminal_bsd.go" - } - }, - { - "name": "terminal_check_appengine.go", - "path": "terminal_check_appengine.go", - "sha": "3de08e802fde8205884c7cb6f4639154c65eb4d2", - "size": 120, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_check_appengine.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/terminal_check_appengine.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3de08e802fde8205884c7cb6f4639154c65eb4d2", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/terminal_check_appengine.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_check_appengine.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3de08e802fde8205884c7cb6f4639154c65eb4d2", - "html": "https://github.com/sirupsen/logrus/blob/master/terminal_check_appengine.go" - } - }, - { - "name": "terminal_check_notappengine.go", - "path": "terminal_check_notappengine.go", - "sha": "067047a12334012d22ac8c6940ea5dd9e40b5a0b", - "size": 262, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_check_notappengine.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/terminal_check_notappengine.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/067047a12334012d22ac8c6940ea5dd9e40b5a0b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/terminal_check_notappengine.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_check_notappengine.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/067047a12334012d22ac8c6940ea5dd9e40b5a0b", - "html": "https://github.com/sirupsen/logrus/blob/master/terminal_check_notappengine.go" - } - }, - { - "name": "terminal_linux.go", - "path": "terminal_linux.go", - "sha": "f29a0097c81d564591900c094f71174e681d8aaa", - "size": 330, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_linux.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/terminal_linux.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/f29a0097c81d564591900c094f71174e681d8aaa", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/terminal_linux.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_linux.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/f29a0097c81d564591900c094f71174e681d8aaa", - "html": "https://github.com/sirupsen/logrus/blob/master/terminal_linux.go" - } - }, - { - "name": "text_formatter.go", - "path": "text_formatter.go", - "sha": "3e55040304dfb161843b4ba833500de128e9634b", - "size": 4687, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/text_formatter.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/text_formatter.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3e55040304dfb161843b4ba833500de128e9634b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/text_formatter.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/text_formatter.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3e55040304dfb161843b4ba833500de128e9634b", - "html": "https://github.com/sirupsen/logrus/blob/master/text_formatter.go" - } - }, - { - "name": "text_formatter_test.go", - "path": "text_formatter_test.go", - "sha": "921d0522b1452ae0f31f9e5d7f30d2a8e5958a11", - "size": 5930, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/text_formatter_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/text_formatter_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/921d0522b1452ae0f31f9e5d7f30d2a8e5958a11", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/text_formatter_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/text_formatter_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/921d0522b1452ae0f31f9e5d7f30d2a8e5958a11", - "html": "https://github.com/sirupsen/logrus/blob/master/text_formatter_test.go" - } - }, - { - "name": "writer.go", - "path": "writer.go", - "sha": "7bdebedc60bb91b7c24ec373cace3c6d3e9365a7", - "size": 1269, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/writer.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/writer.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/7bdebedc60bb91b7c24ec373cace3c6d3e9365a7", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/writer.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/writer.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/7bdebedc60bb91b7c24ec373cace3c6d3e9365a7", - "html": "https://github.com/sirupsen/logrus/blob/master/writer.go" - } - } -] diff --git a/dep/spec/fixtures/github/contents_go_library_with_go_mod.json b/dep/spec/fixtures/github/contents_go_library_with_go_mod.json deleted file mode 100644 index 22adff3d1a..0000000000 --- a/dep/spec/fixtures/github/contents_go_library_with_go_mod.json +++ /dev/null @@ -1,530 +0,0 @@ -[ - { - "name": "go.mod", - "path": "go.mod", - "sha": "66be63a00578abc9791f1f1f765676303aea185b", - "size": 7, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/go.mod?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/go.mod", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/go.mod", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/go.mod?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "html": "https://github.com/sirupsen/logrus/blob/master/go.mod" - } - }, - { - "name": ".gitignore", - "path": ".gitignore", - "sha": "66be63a00578abc9791f1f1f765676303aea185b", - "size": 7, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/.gitignore?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/.gitignore", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/.gitignore", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/.gitignore?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/66be63a00578abc9791f1f1f765676303aea185b", - "html": "https://github.com/sirupsen/logrus/blob/master/.gitignore" - } - }, - { - "name": ".travis.yml", - "path": ".travis.yml", - "sha": "2f19b4a757a94141dd474fd3bd908e425b7beae7", - "size": 296, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/.travis.yml?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/.travis.yml", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/2f19b4a757a94141dd474fd3bd908e425b7beae7", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/.travis.yml", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/.travis.yml?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/2f19b4a757a94141dd474fd3bd908e425b7beae7", - "html": "https://github.com/sirupsen/logrus/blob/master/.travis.yml" - } - }, - { - "name": "CHANGELOG.md", - "path": "CHANGELOG.md", - "sha": "1bd1deb294752a1764352ee708af687ca7ad9ae3", - "size": 2658, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/CHANGELOG.md?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/1bd1deb294752a1764352ee708af687ca7ad9ae3", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/CHANGELOG.md", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/CHANGELOG.md?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/1bd1deb294752a1764352ee708af687ca7ad9ae3", - "html": "https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md" - } - }, - { - "name": "LICENSE", - "path": "LICENSE", - "sha": "f090cb42f370bda9e7f4f58d9b8b8ee2750c115f", - "size": 1082, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/LICENSE?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/LICENSE", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/f090cb42f370bda9e7f4f58d9b8b8ee2750c115f", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/LICENSE", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/LICENSE?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/f090cb42f370bda9e7f4f58d9b8b8ee2750c115f", - "html": "https://github.com/sirupsen/logrus/blob/master/LICENSE" - } - }, - { - "name": "README.md", - "path": "README.md", - "sha": "072e99be3137632f64c1bf57c49a67a199f74026", - "size": 16754, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/README.md?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/README.md", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/072e99be3137632f64c1bf57c49a67a199f74026", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/README.md", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/README.md?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/072e99be3137632f64c1bf57c49a67a199f74026", - "html": "https://github.com/sirupsen/logrus/blob/master/README.md" - } - }, - { - "name": "alt_exit.go", - "path": "alt_exit.go", - "sha": "8af90637a99e61a5f55df746e1f916b4b0ffab06", - "size": 2246, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/alt_exit.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/alt_exit.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/8af90637a99e61a5f55df746e1f916b4b0ffab06", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/alt_exit.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/alt_exit.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/8af90637a99e61a5f55df746e1f916b4b0ffab06", - "html": "https://github.com/sirupsen/logrus/blob/master/alt_exit.go" - } - }, - { - "name": "alt_exit_test.go", - "path": "alt_exit_test.go", - "sha": "a08b1a898f665878347a19952ab3037afc66ea62", - "size": 1623, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/alt_exit_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/alt_exit_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a08b1a898f665878347a19952ab3037afc66ea62", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/alt_exit_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/alt_exit_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a08b1a898f665878347a19952ab3037afc66ea62", - "html": "https://github.com/sirupsen/logrus/blob/master/alt_exit_test.go" - } - }, - { - "name": "appveyor.yml", - "path": "appveyor.yml", - "sha": "96c2ce15f842b92c87952ba5702d33c37ccf1344", - "size": 281, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/appveyor.yml?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/appveyor.yml", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/96c2ce15f842b92c87952ba5702d33c37ccf1344", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/appveyor.yml", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/appveyor.yml?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/96c2ce15f842b92c87952ba5702d33c37ccf1344", - "html": "https://github.com/sirupsen/logrus/blob/master/appveyor.yml" - } - }, - { - "name": "doc.go", - "path": "doc.go", - "sha": "da67aba06debf6721a2d97604145aa09ac257e19", - "size": 586, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/doc.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/doc.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/da67aba06debf6721a2d97604145aa09ac257e19", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/doc.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/doc.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/da67aba06debf6721a2d97604145aa09ac257e19", - "html": "https://github.com/sirupsen/logrus/blob/master/doc.go" - } - }, - { - "name": "entry.go", - "path": "entry.go", - "sha": "c2b2e493d8814cce43b09eeeedf408d931df4b21", - "size": 7462, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/entry.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/entry.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/c2b2e493d8814cce43b09eeeedf408d931df4b21", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/entry.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/entry.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/c2b2e493d8814cce43b09eeeedf408d931df4b21", - "html": "https://github.com/sirupsen/logrus/blob/master/entry.go" - } - }, - { - "name": "entry_test.go", - "path": "entry_test.go", - "sha": "a81e2b3834cfe89b77bd99f5d2bfba8b14d6e4ac", - "size": 2126, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/entry_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/entry_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a81e2b3834cfe89b77bd99f5d2bfba8b14d6e4ac", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/entry_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/entry_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a81e2b3834cfe89b77bd99f5d2bfba8b14d6e4ac", - "html": "https://github.com/sirupsen/logrus/blob/master/entry_test.go" - } - }, - { - "name": "example_basic_test.go", - "path": "example_basic_test.go", - "sha": "a2acf550c95dfecb11132ec8578d2b6ef8d4c560", - "size": 2042, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/example_basic_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/example_basic_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a2acf550c95dfecb11132ec8578d2b6ef8d4c560", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/example_basic_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/example_basic_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/a2acf550c95dfecb11132ec8578d2b6ef8d4c560", - "html": "https://github.com/sirupsen/logrus/blob/master/example_basic_test.go" - } - }, - { - "name": "example_hook_test.go", - "path": "example_hook_test.go", - "sha": "d4ddffca37ffe59a15a670d50a9c285a108c2e32", - "size": 1001, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/example_hook_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/example_hook_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/d4ddffca37ffe59a15a670d50a9c285a108c2e32", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/example_hook_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/example_hook_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/d4ddffca37ffe59a15a670d50a9c285a108c2e32", - "html": "https://github.com/sirupsen/logrus/blob/master/example_hook_test.go" - } - }, - { - "name": "exported.go", - "path": "exported.go", - "sha": "eb612a6f3e8a87ef7dd297c61396acf972dec2b3", - "size": 5283, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/exported.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/exported.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/eb612a6f3e8a87ef7dd297c61396acf972dec2b3", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/exported.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/exported.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/eb612a6f3e8a87ef7dd297c61396acf972dec2b3", - "html": "https://github.com/sirupsen/logrus/blob/master/exported.go" - } - }, - { - "name": "formatter.go", - "path": "formatter.go", - "sha": "83c74947beab291bffa8205e6646b35c1ef1536f", - "size": 1603, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/formatter.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/formatter.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/83c74947beab291bffa8205e6646b35c1ef1536f", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/formatter.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/formatter.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/83c74947beab291bffa8205e6646b35c1ef1536f", - "html": "https://github.com/sirupsen/logrus/blob/master/formatter.go" - } - }, - { - "name": "formatter_bench_test.go", - "path": "formatter_bench_test.go", - "sha": "d9481589f5f0e3bce680d81a4766a6f47fae16ed", - "size": 2143, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/formatter_bench_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/formatter_bench_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/d9481589f5f0e3bce680d81a4766a6f47fae16ed", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/formatter_bench_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/formatter_bench_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/d9481589f5f0e3bce680d81a4766a6f47fae16ed", - "html": "https://github.com/sirupsen/logrus/blob/master/formatter_bench_test.go" - } - }, - { - "name": "hook_test.go", - "path": "hook_test.go", - "sha": "4fea7514e1b7bfa9ee0d09c51b2495ec463a30cd", - "size": 2549, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/hook_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/hook_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/4fea7514e1b7bfa9ee0d09c51b2495ec463a30cd", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/hook_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/hook_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/4fea7514e1b7bfa9ee0d09c51b2495ec463a30cd", - "html": "https://github.com/sirupsen/logrus/blob/master/hook_test.go" - } - }, - { - "name": "hooks.go", - "path": "hooks.go", - "sha": "3f151cdc39275a003d6a6e7059b0801071c001a8", - "size": 1101, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/hooks.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/hooks.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3f151cdc39275a003d6a6e7059b0801071c001a8", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/hooks.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/hooks.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3f151cdc39275a003d6a6e7059b0801071c001a8", - "html": "https://github.com/sirupsen/logrus/blob/master/hooks.go" - } - }, - { - "name": "hooks", - "path": "hooks", - "sha": "38f957031349e4a370df3c5fcd11c4db397cd6ec", - "size": 0, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/hooks?ref=master", - "html_url": "https://github.com/sirupsen/logrus/tree/master/hooks", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/trees/38f957031349e4a370df3c5fcd11c4db397cd6ec", - "download_url": null, - "type": "dir", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/hooks?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/trees/38f957031349e4a370df3c5fcd11c4db397cd6ec", - "html": "https://github.com/sirupsen/logrus/tree/master/hooks" - } - }, - { - "name": "json_formatter.go", - "path": "json_formatter.go", - "sha": "dab17610f172e45833cd19eb9bfc2a61cbb0e6b1", - "size": 2117, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/json_formatter.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/json_formatter.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dab17610f172e45833cd19eb9bfc2a61cbb0e6b1", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/json_formatter.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/json_formatter.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dab17610f172e45833cd19eb9bfc2a61cbb0e6b1", - "html": "https://github.com/sirupsen/logrus/blob/master/json_formatter.go" - } - }, - { - "name": "json_formatter_test.go", - "path": "json_formatter_test.go", - "sha": "0dde3004cbccc291bc342a52191752fd7f4b4653", - "size": 7011, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/json_formatter_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/json_formatter_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/0dde3004cbccc291bc342a52191752fd7f4b4653", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/json_formatter_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/json_formatter_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/0dde3004cbccc291bc342a52191752fd7f4b4653", - "html": "https://github.com/sirupsen/logrus/blob/master/json_formatter_test.go" - } - }, - { - "name": "logger.go", - "path": "logger.go", - "sha": "342f7977d85b84b2a21797085de4c5a848c0c0e0", - "size": 8373, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/logger.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/logger.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/342f7977d85b84b2a21797085de4c5a848c0c0e0", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/logger.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/logger.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/342f7977d85b84b2a21797085de4c5a848c0c0e0", - "html": "https://github.com/sirupsen/logrus/blob/master/logger.go" - } - }, - { - "name": "logger_bench_test.go", - "path": "logger_bench_test.go", - "sha": "dd23a3535ec9626a00e590bf53f221017fc99f39", - "size": 1344, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/logger_bench_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/logger_bench_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dd23a3535ec9626a00e590bf53f221017fc99f39", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/logger_bench_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/logger_bench_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dd23a3535ec9626a00e590bf53f221017fc99f39", - "html": "https://github.com/sirupsen/logrus/blob/master/logger_bench_test.go" - } - }, - { - "name": "logrus.go", - "path": "logrus.go", - "sha": "dd38999741ed0802ad3d28892abb3c0b60a56c16", - "size": 3667, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/logrus.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/logrus.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dd38999741ed0802ad3d28892abb3c0b60a56c16", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/logrus.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/logrus.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/dd38999741ed0802ad3d28892abb3c0b60a56c16", - "html": "https://github.com/sirupsen/logrus/blob/master/logrus.go" - } - }, - { - "name": "logrus_test.go", - "path": "logrus_test.go", - "sha": "57fb8d1c6ecfbb3eac12e3401e6580113e6a8991", - "size": 11148, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/logrus_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/logrus_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/57fb8d1c6ecfbb3eac12e3401e6580113e6a8991", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/logrus_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/logrus_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/57fb8d1c6ecfbb3eac12e3401e6580113e6a8991", - "html": "https://github.com/sirupsen/logrus/blob/master/logrus_test.go" - } - }, - { - "name": "terminal_bsd.go", - "path": "terminal_bsd.go", - "sha": "4880d13d26d803691bc1eccecf02895a5e5c1a3a", - "size": 196, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_bsd.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/terminal_bsd.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/4880d13d26d803691bc1eccecf02895a5e5c1a3a", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/terminal_bsd.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_bsd.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/4880d13d26d803691bc1eccecf02895a5e5c1a3a", - "html": "https://github.com/sirupsen/logrus/blob/master/terminal_bsd.go" - } - }, - { - "name": "terminal_check_appengine.go", - "path": "terminal_check_appengine.go", - "sha": "3de08e802fde8205884c7cb6f4639154c65eb4d2", - "size": 120, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_check_appengine.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/terminal_check_appengine.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3de08e802fde8205884c7cb6f4639154c65eb4d2", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/terminal_check_appengine.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_check_appengine.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3de08e802fde8205884c7cb6f4639154c65eb4d2", - "html": "https://github.com/sirupsen/logrus/blob/master/terminal_check_appengine.go" - } - }, - { - "name": "terminal_check_notappengine.go", - "path": "terminal_check_notappengine.go", - "sha": "067047a12334012d22ac8c6940ea5dd9e40b5a0b", - "size": 262, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_check_notappengine.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/terminal_check_notappengine.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/067047a12334012d22ac8c6940ea5dd9e40b5a0b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/terminal_check_notappengine.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_check_notappengine.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/067047a12334012d22ac8c6940ea5dd9e40b5a0b", - "html": "https://github.com/sirupsen/logrus/blob/master/terminal_check_notappengine.go" - } - }, - { - "name": "terminal_linux.go", - "path": "terminal_linux.go", - "sha": "f29a0097c81d564591900c094f71174e681d8aaa", - "size": 330, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_linux.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/terminal_linux.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/f29a0097c81d564591900c094f71174e681d8aaa", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/terminal_linux.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/terminal_linux.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/f29a0097c81d564591900c094f71174e681d8aaa", - "html": "https://github.com/sirupsen/logrus/blob/master/terminal_linux.go" - } - }, - { - "name": "text_formatter.go", - "path": "text_formatter.go", - "sha": "3e55040304dfb161843b4ba833500de128e9634b", - "size": 4687, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/text_formatter.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/text_formatter.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3e55040304dfb161843b4ba833500de128e9634b", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/text_formatter.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/text_formatter.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/3e55040304dfb161843b4ba833500de128e9634b", - "html": "https://github.com/sirupsen/logrus/blob/master/text_formatter.go" - } - }, - { - "name": "text_formatter_test.go", - "path": "text_formatter_test.go", - "sha": "921d0522b1452ae0f31f9e5d7f30d2a8e5958a11", - "size": 5930, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/text_formatter_test.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/text_formatter_test.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/921d0522b1452ae0f31f9e5d7f30d2a8e5958a11", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/text_formatter_test.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/text_formatter_test.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/921d0522b1452ae0f31f9e5d7f30d2a8e5958a11", - "html": "https://github.com/sirupsen/logrus/blob/master/text_formatter_test.go" - } - }, - { - "name": "writer.go", - "path": "writer.go", - "sha": "7bdebedc60bb91b7c24ec373cace3c6d3e9365a7", - "size": 1269, - "url": "https://api.github.com/repos/sirupsen/logrus/contents/writer.go?ref=master", - "html_url": "https://github.com/sirupsen/logrus/blob/master/writer.go", - "git_url": "https://api.github.com/repos/sirupsen/logrus/git/blobs/7bdebedc60bb91b7c24ec373cace3c6d3e9365a7", - "download_url": "https://raw.githubusercontent.com/sirupsen/logrus/master/writer.go", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/sirupsen/logrus/contents/writer.go?ref=master", - "git": "https://api.github.com/repos/sirupsen/logrus/git/blobs/7bdebedc60bb91b7c24ec373cace3c6d3e9365a7", - "html": "https://github.com/sirupsen/logrus/blob/master/writer.go" - } - } -] diff --git a/dep/spec/fixtures/github/contents_go_mod.json b/dep/spec/fixtures/github/contents_go_mod.json deleted file mode 100644 index 3b850cf9b1..0000000000 --- a/dep/spec/fixtures/github/contents_go_mod.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "go.mod", - "path": "go.mod", - "sha": "4debbbe35805f66ab1c09fc8843cdae08689e7ef", - "size": 75, - "url": "https://api.github.com/repos/hashicorp/hcl/contents/go.mod?ref=master", - "html_url": "https://github.com/hashicorp/hcl/blob/master/go.mod", - "git_url": "https://api.github.com/repos/hashicorp/hcl/git/blobs/4debbbe35805f66ab1c09fc8843cdae08689e7ef", - "download_url": "https://raw.githubusercontent.com/hashicorp/hcl/master/go.mod", - "type": "file", - "content": "bW9kdWxlIGdpdGh1Yi5jb20vaGFzaGljb3JwL2hjbAoKcmVxdWlyZSBnaXRo\ndWIuY29tL2RhdmVjZ2gvZ28tc3BldyB2MS4xLjEK\n", - "encoding": "base64", - "_links": { - "self": "https://api.github.com/repos/hashicorp/hcl/contents/go.mod?ref=master", - "git": "https://api.github.com/repos/hashicorp/hcl/git/blobs/4debbbe35805f66ab1c09fc8843cdae08689e7ef", - "html": "https://github.com/hashicorp/hcl/blob/master/go.mod" - } -} diff --git a/dep/spec/fixtures/github/contents_gopkg_lock.json b/dep/spec/fixtures/github/contents_gopkg_lock.json deleted file mode 100644 index 07b370ce44..0000000000 --- a/dep/spec/fixtures/github/contents_gopkg_lock.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "Gopkg.lock", - "path": "Gopkg.lock", - "sha": "816ac07074ab08023f4fea593888b1f87dd774b3", - "size": 29707, - "url": "https://api.github.com/repos/cockroachdb/cockroach/contents/Gopkg.lock?ref=master", - "html_url": "https://github.com/cockroachdb/cockroach/blob/master/Gopkg.lock", - "git_url": "https://api.github.com/repos/cockroachdb/cockroach/git/blobs/816ac07074ab08023f4fea593888b1f87dd774b3", - "download_url": "https://raw.githubusercontent.com/cockroachdb/cockroach/master/Gopkg.lock", - "type": "file", - "content": "IyBUaGlzIGZpbGUgaXMgYXV0b2dlbmVyYXRlZCwgZG8gbm90IGVkaXQ7IGNo\nYW5nZXMgbWF5IGJlIHVuZG9uZSBieSB0aGUgbmV4dCAnZGVwIGVuc3VyZScu\nCgoKW1twcm9qZWN0c11dCiAgbmFtZSA9ICJjbG91ZC5nb29nbGUuY29tL2dv\nIgogIHBhY2thZ2VzID0gWwogICAgImNvbXB1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WQiLAogICAgImZ1bmN0aW9ucyIsCiAgICAi\naW50ZXJuYWwvc2hhcmVkY2hlY2siLAogICAgImxpbnQiLAogICAgInNpbXBs\nZSIsCiAgICAic3NhIiwKICAgICJzc2Evc3NhdXRpbCIsCiAgICAic3RhdGlj\nY2hlY2siLAogICAgInN0YXRpY2NoZWNrL3ZycCIsCiAgICAidW51c2VkIiwK\nICBdCiAgcmV2aXNpb24gPSAiZDczYWI5OGU3YzM5ZmRjZjliYTY1MDYyZTQz\nZDM0MzEwZjE5ODM1MyIKICB2ZXJzaW9uID0gIjIwMTcuMi4yIgoKW3NvbHZl\nLW1ldGFdCiAgYW5hbHl6ZXItbmFtZSA9ICJkZXAiCiAgYW5hbHl6ZXItdmVy\nc2lvbiA9IDEKICBpbnB1dHMtZGlnZXN0ID0gIjgwMjI4MzYyMjMwNTlhZWFk\nODdmNmQ3ZDZiOTQ1MWE1ZDdhZDhhMjBmNDM1OGNiNzA5Y2NmMjg1OWY5Yzc0\nY2UiCiAgc29sdmVyLW5hbWUgPSAiZ3BzLWNkY2wiCiAgc29sdmVyLXZlcnNp\nb24gPSAxCg==\n", - "encoding": "base64", - "_links": { - "self": "https://api.github.com/repos/cockroachdb/cockroach/contents/Gopkg.lock?ref=master", - "git": "https://api.github.com/repos/cockroachdb/cockroach/git/blobs/816ac07074ab08023f4fea593888b1f87dd774b3", - "html": "https://github.com/cockroachdb/cockroach/blob/master/Gopkg.lock" - } -} diff --git a/dep/spec/fixtures/github/contents_gopkg_toml.json b/dep/spec/fixtures/github/contents_gopkg_toml.json deleted file mode 100644 index 1b8320e184..0000000000 --- a/dep/spec/fixtures/github/contents_gopkg_toml.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "Gopkg.toml", - "path": "Gopkg.toml", - "sha": "ad9e923036970af596b854534149b41bdc0ecfa1", - "size": 3254, - "url": "https://api.github.com/repos/cockroachdb/cockroach/contents/Gopkg.toml?ref=master", - "html_url": "https://github.com/cockroachdb/cockroach/blob/master/Gopkg.toml", - "git_url": "https://api.github.com/repos/cockroachdb/cockroach/git/blobs/ad9e923036970af596b854534149b41bdc0ecfa1", - "download_url": "https://raw.githubusercontent.com/cockroachdb/cockroach/master/Gopkg.toml", - "type": "file", - "content": "cmVxdWlyZWQgPSBbCiAiZ2l0aHViLmNvbS9jbGllbnQ5L21pc3NwZWxsL2Nt\nZC9taXNzcGVsbCIsCiAiZ2l0aHViLmNvbS9jb2Nrcm9hY2hkYi9jcmxmbXQi\nLAogImdpdGh1Yi5jb20vY29ja3JvYWNoZGIvc3RyZXNzIiwKICJnaXRodWIu\nY29tL2dvbGFuZy9kZXAvY21kL2RlcCIsCiAiZ2l0aHViLmNvbS9nb2xhbmcv\nbGludC9nb2xpbnQiLAogImdpdGh1Yi5jb20vZ29vZ2xlL3Bwcm9mIiwKICJn\naXRodWIuY29tL2dycGMtZWNvc3lzdGVtL2dycGMtZ2F0ZXdheS9wcm90b2Mt\nZ2VuLWdycGMtZ2F0ZXdheSIsCiAiZ2l0aHViLmNvbS9qdGVldXdlbi9nby1i\naW5kYXRhL2dvLWJpbmRhdGEiLAogImdpdGh1Yi5jb20va2lzaWVsay9lcnJj\naGVjayIsCiAiZ2l0aHViLmNvbS9tYXR0bi9nb3ZlcmFsbHMiLAogImdpdGh1\nYi5jb20vbWliay9kdXBsIiwKICJnaXRodWIuY29tL3dhZGV5L2dvY292bWVy\nZ2UiLAogImdvbGFuZy5vcmcveC9wZXJmL2NtZC9iZW5jaHN0YXQiLAogImdv\nbGFuZy5vcmcveC90b29scy9jbWQvZ29pbXBvcnRzIiwKICJnb2xhbmcub3Jn\nL3gvdG9vbHMvY21kL2dveWFjYyIsCiAiZ29sYW5nLm9yZy94L3Rvb2xzL2Nt\nZC9zdHJpbmdlciIsCl0KCmlnbm9yZWQgPSBbCiAgIyBOb24tZXhpc3RlbnQg\ncGFja2FnZSB1c2VkIGJ5IGEgdG95IHByb2dyYW0gaW4gYy1kZXBzL3Byb3Rv\nYnVmLgogICJnaX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ZhbHNlCgogIFtbcHJ1bmUucHJvamVjdF1dCiAgICBuYW1lID0g\nImdpdGh1Yi5jb20vcHJvbWV0aGV1cy9jbGllbnRfbW9kZWwiCiAgICB1bnVz\nZWQtcGFja2FnZXMgPSBmYWxzZQoKICAjIENvbnRhaW5zIHBhY2thZ2VzIHdp\ndGggdXNlZCBDIGZpbGVzLgogIFtbcHJ1bmUucHJvamVjdF1dCiAgICBuYW1l\nID0gImdpdGh1Yi5jb20va256L2dvLWxpYmVkaXQiCiAgICB1bnVzZWQtcGFj\na2FnZXMgPSBmYWxzZQo=\n", - "encoding": "base64", - "_links": { - "self": "https://api.github.com/repos/cockroachdb/cockroach/contents/Gopkg.toml?ref=master", - "git": "https://api.github.com/repos/cockroachdb/cockroach/git/blobs/ad9e923036970af596b854534149b41bdc0ecfa1", - "html": "https://github.com/cockroachdb/cockroach/blob/master/Gopkg.toml" - } -} diff --git a/dep/spec/fixtures/github/contents_main_go.json b/dep/spec/fixtures/github/contents_main_go.json deleted file mode 100644 index 830b079167..0000000000 --- a/dep/spec/fixtures/github/contents_main_go.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "main.go", - "path": "main.go", - "sha": "d040121111e637338dbfbb72f57b7cced03ae440", - "size": 924, - "url": "https://api.github.com/repos/gohugoio/hugo/contents/main.go?ref=master", - "html_url": "https://github.com/gohugoio/hugo/blob/master/main.go", - "git_url": "https://api.github.com/repos/gohugoio/hugo/git/blobs/d040121111e637338dbfbb72f57b7cced03ae440", - "download_url": "https://raw.githubusercontent.com/gohugoio/hugo/master/main.go", - "type": "file", - "content": "Ly8gQ29weXJpZ2h0IDIwMTUgVGhlIEh1Z28gQXV0aG9ycy4gQWxsIHJpZ2h0\ncyByZXNlcnZlZC4KLy8KLy8gTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBM\naWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlICJMaWNlbnNlIik7Ci8vIHlvdSBt\nYXkgbm90IHVzZSB0aGlzIGZ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X0KCn0K\n", - "encoding": "base64", - "_links": { - "self": "https://api.github.com/repos/gohugoio/hugo/contents/main.go?ref=master", - "git": "https://api.github.com/repos/gohugoio/hugo/git/blobs/d040121111e637338dbfbb72f57b7cced03ae440", - "html": "https://github.com/gohugoio/hugo/blob/master/main.go" - } -} diff --git a/dep/spec/fixtures/go_files/main.go b/dep/spec/fixtures/go_files/main.go deleted file mode 100644 index 949c2cee07..0000000000 --- a/dep/spec/fixtures/go_files/main.go +++ /dev/null @@ -1,93 +0,0 @@ -/* - Copyright (C) 2017 Jorge Martinez Hernandez - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package main - -import ( - "os" - "os/signal" - - "github.com/varddum/syndication/admin" - "github.com/varddum/syndication/cmd" - "github.com/varddum/syndication/database" - "github.com/varddum/syndication/server" - "github.com/varddum/syndication/sync" - - log "github.com/sirupsen/logrus" -) - -var intSignal chan os.Signal - -func main() { - if err := cmd.Execute(); err != nil { - log.Error(err) - os.Exit(1) - } - - config := cmd.EffectiveConfig - - if err := database.Init(config.Database.Type, config.Database.Connection); err != nil { - log.Error(err) - os.Exit(1) - } - - sync := sync.NewService(config.Sync.Interval) - - if config.Admin.Enable { - adminServ, err := admin.NewService(config.Admin.SocketPath) - if err != nil { - log.Error(err) - os.Exit(1) - } - adminServ.Start() - - defer adminServ.Stop() - } - - sync.Start() - - listenForInterrupt() - - server := server.NewServer(config.AuthSecret) - go func() { - for sig := range intSignal { - if sig == os.Interrupt || sig == os.Kill { - err := server.Stop() - if err != nil { - log.Error(err) - os.Exit(1) - } - } - } - }() - - log.Info("Starting server on ", config.Host.Address, ":", config.Host.Port) - - err := server.Start( - config.Host.Address, - config.Host.Port) - - if err != nil { - log.Error(err) - os.Exit(1) - } -} - -func listenForInterrupt() { - intSignal = make(chan os.Signal, 1) - signal.Notify(intSignal, os.Interrupt) -} diff --git a/dep/spec/fixtures/gopkg_locks/bare_version-0.5.lock b/dep/spec/fixtures/gopkg_locks/bare_version-0.5.lock deleted file mode 100644 index 9b3e5d00e1..0000000000 --- a/dep/spec/fixtures/gopkg_locks/bare_version-0.5.lock +++ /dev/null @@ -1,17 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:691479d6153f2d453de74e29025212086c7ebe4424b08743928b5160117506b2" - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - pruneopts = "" - revision = "fbcb3e4b637bdc5ef2257eb2d0fe1d914a499386" - version = "v1.0.1" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = ["github.com/dgrijalva/jwt-go"] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/bare_version.lock b/dep/spec/fixtures/gopkg_locks/bare_version.lock deleted file mode 100644 index 918ff4ebdb..0000000000 --- a/dep/spec/fixtures/gopkg_locks/bare_version.lock +++ /dev/null @@ -1,15 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - revision = "fbcb3e4b637bdc5ef2257eb2d0fe1d914a499386" - version = "v1.0.1" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "eb62c15704b851f8626abe61ac342d43a2d3522af64b9c8aa89748486e3325cc" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/branch.lock b/dep/spec/fixtures/gopkg_locks/branch.lock deleted file mode 100644 index e44d91340b..0000000000 --- a/dep/spec/fixtures/gopkg_locks/branch.lock +++ /dev/null @@ -1,30 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - branch = "master" - name = "golang.org/x/text" - packages = [ - ".", - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/language", - "internal/language/compact", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "transform", - "unicode/cldr", - "unicode/norm" - ] - revision = "7dd2c8130f5e924233f5543598300651c386d431" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "405bb493c54786c5c6ad50e065d9d815af21e413be8ef1b592ca5333d8144eb5" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/cockroach.lock b/dep/spec/fixtures/gopkg_locks/cockroach.lock deleted file mode 100644 index 816ac07074..0000000000 --- a/dep/spec/fixtures/gopkg_locks/cockroach.lock +++ /dev/null @@ -1,1309 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "cloud.google.com/go" - packages = [ - "compute/metadata", - "iam", - "internal", - "internal/optional", - "internal/trace", - "internal/version", - "storage", - ] - revision = "0fd7230b2a7505833d5f69b75cbd6c9582401479" - version = "v0.23.0" - -[[projects]] - name = "github.com/Azure/azure-sdk-for-go" - packages = [ - "storage", - "version", - ] - revision = "e67cd39e942c417ae5e9ae1165f778d9fe8996e0" - version = "v14.5.0" - -[[projects]] - branch = "master" - name = "github.com/Azure/go-ansiterm" - packages = [ - ".", - "winterm", - ] - revision = "d6e3b3328b783f23731bc4d058875b0371ff8109" - -[[projects]] - name = "github.com/Azure/go-autorest" - packages = [ - "autorest", - "autorest/adal", - "autorest/azure", - "autorest/date", - ] - revision = "0ae36a9e544696de46fdadb7b0d5fb38af48c063" - version = "v10.2.0" - -[[projects]] - branch = "parse-constraints-with-dash-in-pre" - name = "github.com/Masterminds/semver" - packages = ["."] - revision = "a93e51b5a57ef416dac8bb02d11407b6f55d8929" - source = "https://github.com/carolynvs/semver.git" - -[[projects]] - name = "github.com/Masterminds/vcs" - packages = ["."] - revision = "6f1c6d150500e452704e9863f68c2559f58616bf" - version = "v1.12.0" - -[[projects]] - branch = "master" - name = "github.com/MichaelTJones/walk" - packages = ["."] - revision = "4748e29d5718c2df4028a6543edf86fd8cc0f881" - -[[projects]] - name = "github.com/Microsoft/go-winio" - packages = ["."] - revision = "78439966b38d69bf38227fbf57ac8a6fee70f69a" - version = "v0.4.5" - -[[projects]] - branch = "master" - name = "github.com/Nvveen/Gotty" - packages = ["."] - revision = "cd527374f1e5bff4938207604a14f2e38a9cf512" - -[[projects]] - name = "github.com/PuerkitoBio/goquery" - packages = ["."] - revision = "e1271ee34c6a305e38566ecd27ae374944907ee9" - version = "v1.1.0" - -[[projects]] - name = "github.com/Shopify/sarama" - packages = ["."] - revision = "bbdbe644099b7fdc8327d5cc69c030945188b2e9" - version = "v1.13.0" - -[[projects]] - branch = "master" - name = "github.com/StackExchange/wmi" - packages = ["."] - revision = "ea383cf3ba6ec950874b8486cd72356d007c768f" - -[[projects]] - name = "github.com/VividCortex/ewma" - packages = ["."] - revision = "b24eb346a94c3ba12c1da1e564dbac1b498a77ce" - version = "v1.1.1" - -[[projects]] - branch = "master" - name = "github.com/abourget/teamcity" - packages = ["."] - revision = "e241104394f91bf4e65048f9ea5d0c0f3c25b35e" - -[[projects]] - branch = "master" - name = "github.com/andy-kimball/arenaskl" - packages = ["."] - revision = "224761e552afe64db9d93004f8d5d3a686b89771" - -[[projects]] - branch = "master" - name = "github.com/andybalholm/cascadia" - packages = ["."] - revision = "349dd0209470eabd9514242c688c403c0926d266" - -[[projects]] - name = "github.com/apache/thrift" - packages = ["lib/go/thrift"] - revision = "327ebb6c2b6df8bf075da02ef45a2a034e9b79ba" - version = "0.11.0" - -[[projects]] - branch = "master" - name = "github.com/armon/go-radix" - packages = ["."] - revision = "1fca145dffbcaa8fe914309b1ec0cfc67500fe61" - -[[projects]] - name = "github.com/aws/aws-sdk-go" - packages = [ - "aws", - "aws/awserr", - "aws/awsutil", - "aws/client", - "aws/client/metadata", - "aws/corehandlers", - "aws/credentials", - "aws/credentials/ec2rolecreds", - "aws/credentials/endpointcreds", - "aws/credentials/stscreds", - "aws/defaults", - "aws/ec2metadata", - "aws/endpoints", - "aws/request", - "aws/session", - "aws/signer/v4", - "internal/shareddefaults", - "private/protocol", - "private/protocol/query", - "private/protocol/query/queryutil", - "private/protocol/rest", - "private/protocol/restxml", - "private/protocol/xml/xmlutil", - "service/s3", - "service/s3/s3iface", - "service/s3/s3manager", - "service/sts", - ] - revision = "ee1f179877b2daf2aaabf71fa900773bf8842253" - version = "v1.12.19" - -[[projects]] - branch = "master" - name = "github.com/axiomhq/hyperloglog" - packages = ["."] - revision = "baba800be098d9f4303352fa6214a933e371e3da" - -[[projects]] - branch = "master" - name = "github.com/backtrace-labs/go-bcd" - packages = ["."] - revision = "5d8e01b2f0438922289238fd3ba043761daf1102" - -[[projects]] - branch = "master" - name = "github.com/benesch/cgosymbolizer" - packages = ["."] - revision = "70e1ee2b39d3b616a6ab9996820dde224c27f351" - -[[projects]] - branch = "master" - name = "github.com/beorn7/perks" - packages = ["quantile"] - revision = "3a771d992973f24aa725d07868b467d1ddfceafb" - -[[projects]] - branch = "master" - name = "github.com/biogo/store" - packages = ["llrb"] - revision = "913427a1d5e89604e50ea1db0f28f34966d61602" - -[[projects]] - name = "github.com/boltdb/bolt" - packages = ["."] - revision = "2f1ce7a837dcb8da3ec595b1dac9d0632f0f99e8" - version = "v1.3.1" - -[[projects]] - name = "github.com/cenk/backoff" - packages = ["."] - revision = "61153c768f31ee5f130071d08fc82b85208528de" - version = "v1.1.0" - -[[projects]] - name = "github.com/certifi/gocertifi" - packages = ["."] - revision = "3fd9e1adb12b72d2f3f82191d49be9b93c69f67c" - version = "2017.07.27" - -[[projects]] - name = "github.com/client9/misspell" - packages = [ - ".", - "cmd/misspell", - ] - revision = "59894abde931a32630d4e884a09c682ed20c5c7c" - version = "v0.3.0" - -[[projects]] - name = "github.com/cockroachdb/apd" - packages = ["."] - revision = "b1ce49cb2a474f4416531e7395373eaafaa4fbe2" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "github.com/cockroachdb/cmux" - packages = ["."] - revision = "30d10be492927e2dcae0089c374c455d42414fcb" - -[[projects]] - branch = "master" - name = "github.com/cockroachdb/cockroach-go" - packages = ["crdb"] - revision = "59c0560478b705bf9bd12f9252224a0fad7c87df" - -[[projects]] - branch = "master" - name = "github.com/cockroachdb/crlfmt" - packages = ["."] - revision = "5895607e5ea790fcbb640260129a12d277b34e46" - -[[projects]] - branch = "master" - name = "github.com/cockroachdb/returncheck" - packages = ["."] - revision = "e91bb28baf9de4a530d3ae7f041953b23dcce9be" - -[[projects]] - branch = "master" - name = "github.com/cockroachdb/stress" - packages = ["."] - revision = "29b5d31b4c3a949cb3a726750bc34c4d58ec15e8" - -[[projects]] - branch = "master" - name = "github.com/cockroachdb/ttycolor" - packages = ["."] - revision = "5bed2b5a875c88a9d87d0f12b21ba156e2f995f7" - -[[projects]] - branch = "master" - name = "github.com/codahale/hdrhistogram" - packages = ["."] - revision = "3a0bb77429bd3a61596f5e8a3172445844342120" - -[[projects]] - branch = "master" - name = "github.com/coreos/etcd" - packages = [ - "raft", - "raft/raftpb", - ] - revision = "ce0ad377d21819592c3d8c29417d9d7a5ac53f2f" - -[[projects]] - name = "github.com/cpuguy83/go-md2man" - packages = ["md2man"] - revision = "1d903dcb749992f3741d744c0f8376b4bd7eb3e1" - version = "v1.0.7" - -[[projects]] - name = "github.com/davecgh/go-spew" - packages = ["spew"] - revision = "346938d642f2ec3594ed81d874461961cd0faa76" - version = "v1.1.0" - -[[projects]] - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - revision = "dbeaa9332f19a944acb5736b4456cfcc02140e29" - version = "v3.1.0" - -[[projects]] - branch = "master" - name = "github.com/dgryski/go-metro" - packages = ["."] - revision = "280f6062b5bc97ee9b9afe7f2ccb361e59845baa" - -[[projects]] - branch = "master" - name = "github.com/docker/distribution" - packages = [ - "digestset", - "reference", - ] - revision = "3800056b8832cf6075e78b282ac010131d8687bc" - -[[projects]] - branch = "master" - name = "github.com/docker/docker" - packages = [ - "api", - "api/types", - "api/types/blkiodev", - "api/types/container", - "api/types/events", - "api/types/filters", - "api/types/image", - "api/types/mount", - "api/types/network", - "api/types/registry", - "api/types/strslice", - "api/types/swarm", - "api/types/swarm/runtime", - "api/types/time", - "api/types/versions", - "api/types/volume", - "client", - "pkg/jsonmessage", - "pkg/stdcopy", - "pkg/term", - "pkg/term/windows", - ] - revision = "3ab20a87fa10360df891a67b8307399cdf1ab429" - -[[projects]] - name = "github.com/docker/go-connections" - packages = [ - "nat", - "sockets", - "tlsconfig", - ] - revision = "3ede32e2033de7505e6500d6c868c2b9ed9f169d" - version = "v0.3.0" - -[[projects]] - name = "github.com/docker/go-units" - packages = ["."] - revision = "0dadbb0345b35ec7ef35e228dabb8de89a65bf52" - version = "v0.3.2" - -[[projects]] - branch = "master" - name = "github.com/dustin/go-humanize" - packages = ["."] - revision = "77ed807830b4df581417e7f89eb81d4872832b72" - -[[projects]] - name = "github.com/eapache/go-resiliency" - packages = ["breaker"] - revision = "6800482f2c813e689c88b7ed3282262385011890" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "github.com/eapache/go-xerial-snappy" - packages = ["."] - revision = "bb955e01b9346ac19dc29eb16586c90ded99a98c" - -[[projects]] - name = "github.com/eapache/queue" - packages = ["."] - revision = "ded5959c0d4e360646dc9e9908cff48666781367" - version = "v1.0.2" - -[[projects]] - name = "github.com/elastic/gosigar" - packages = [ - ".", - "sys/windows", - ] - revision = "306d51981789ccc65e5f1431d5c0d78d8c368f1b" - version = "v0.5.0" - -[[projects]] - name = "github.com/elazarl/go-bindata-assetfs" - packages = ["."] - revision = "30f82fa23fd844bd5bb1e5f216db87fd77b5eb43" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "github.com/facebookgo/clock" - packages = ["."] - revision = "600d898af40aa09a7a93ecb9265d87b0504b6f03" - -[[projects]] - branch = "master" - name = "github.com/getsentry/raven-go" - packages = ["."] - revision = "221b2b44fb33f84ed3ea13f3aed62ff48c85636b" - source = "https://github.com/cockroachdb/raven-go" - -[[projects]] - branch = "master" - name = "github.com/ghemawat/stream" - packages = ["."] - revision = "78e682abcae4f96ac7ddbe39912967a5f7cbbaa6" - -[[projects]] - name = "github.com/go-ini/ini" - packages = ["."] - revision = "f280b3ba517bf5fc98922624f21fb0e7a92adaec" - version = "v1.30.3" - -[[projects]] - name = "github.com/go-logfmt/logfmt" - packages = ["."] - revision = "390ab7935ee28ec6b286364bba9b4dd6410cb3d5" - version = "v0.3.0" - -[[projects]] - name = "github.com/go-ole/go-ole" - packages = [ - ".", - "oleutil", - ] - revision = "a41e3c4b706f6ae8dfbff342b06e40fa4d2d0506" - version = "v1.2.1" - -[[projects]] - branch = "master" - name = "github.com/go-sql-driver/mysql" - packages = ["."] - revision = "fade21009797158e7b79e04c340118a9220c6f9e" - -[[projects]] - branch = "v2" - name = "github.com/go-yaml/yaml" - packages = ["."] - revision = "eb3733d160e74a9c7e442f435eb3bea458e1d19f" - -[[projects]] - name = "github.com/gogo/protobuf" - packages = [ - "gogoproto", - "jsonpb", - "plugin/compare", - "plugin/defaultcheck", - "plugin/description", - "plugin/embedcheck", - "plugin/enumstringer", - "plugin/equal", - "plugin/face", - "plugin/gostring", - "plugin/marshalto", - "plugin/oneofcheck", - "plugin/populate", - "plugin/size", - "plugin/stringer", - "plugin/testgen", - "plugin/union", - "plugin/unmarshal", - "proto", - "protoc-gen-gogo/descriptor", - "protoc-gen-gogo/generator", - "protoc-gen-gogo/grpc", - "protoc-gen-gogo/plugin", - "sortkeys", - "types", - "vanity", - "vanity/command", - ] - revision = "1adfc126b41513cc696b209667c8656ea7aac67c" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "github.com/golang-commonmark/markdown" - packages = [ - ".", - "byteutil", - "html", - "linkify", - ] - revision = "11a7a839e723aa293cccdc353b394dbfce7c131e" - -[[projects]] - name = "github.com/golang/dep" - packages = [ - ".", - "cmd/dep", - "gps", - "gps/internal/pb", - "gps/paths", - "gps/pkgtree", - "internal/feedback", - "internal/fs", - "internal/importers", - "internal/importers/base", - "internal/importers/glide", - "internal/importers/glock", - "internal/importers/godep", - "internal/importers/govend", - "internal/importers/govendor", - "internal/importers/gvt", - "internal/importers/vndr", - ] - revision = "37d9ea0ac16f0e0a05afc3b60e1ac8c364b6c329" - version = "v0.4.1" - -[[projects]] - branch = "master" - name = "github.com/golang/glog" - packages = ["."] - revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" - -[[projects]] - branch = "master" - name = "github.com/golang/leveldb" - packages = [ - "crc", - "db", - "memfs", - "table", - ] - revision = "259d9253d71996b7778a3efb4144fe4892342b18" - -[[projects]] - branch = "master" - name = "github.com/golang/lint" - packages = [ - ".", - "golint", - ] - revision = "6aaf7c34af0f4c36a57e0c429bace4d706d8e931" - -[[projects]] - branch = "master" - name = "github.com/golang/protobuf" - packages = [ - "jsonpb", - "proto", - "protoc-gen-go/descriptor", - "protoc-gen-go/generator", - "protoc-gen-go/generator/internal/remap", - "protoc-gen-go/plugin", - "ptypes", - "ptypes/any", - "ptypes/duration", - "ptypes/struct", - "ptypes/timestamp", - ] - revision = "b4deda0973fb4c70b50d226b1af49f3da59f5265" - -[[projects]] - branch = "master" - name = "github.com/golang/snappy" - packages = ["."] - revision = "553a641470496b2327abcac10b36396bd98e45c9" - -[[projects]] - branch = "master" - name = "github.com/google/btree" - packages = ["."] - revision = "e89373fe6b4a7413d7acd6da1725b83ef713e6e4" - -[[projects]] - name = "github.com/google/go-github" - packages = ["github"] - revision = "e48060a28fac52d0f1cb758bc8b87c07bac4a87d" - version = "v15.0.0" - -[[projects]] - branch = "master" - name = "github.com/google/go-querystring" - packages = ["query"] - revision = "53e6ce116135b80d037921a7fdd5138cf32d7a8a" - -[[projects]] - branch = "master" - name = "github.com/google/pprof" - packages = [ - ".", - "driver", - "internal/binutils", - "internal/driver", - "internal/elfexec", - "internal/graph", - "internal/measurement", - "internal/plugin", - "internal/report", - "internal/symbolizer", - "internal/symbolz", - "profile", - "third_party/d3", - "third_party/d3flamegraph", - "third_party/d3tip", - "third_party/svgpan", - ] - revision = "60840899638bfaf3fd6f2b17b9785f1dac67a4a4" - -[[projects]] - name = "github.com/googleapis/gax-go" - packages = ["."] - revision = "317e0006254c44a0ac427cc52a0e083ff0b9622f" - version = "v2.0.0" - -[[projects]] - name = "github.com/gorilla/websocket" - packages = ["."] - revision = "ea4d1f681babbce9545c9c5f3d5194a789c89f5b" - version = "v1.2.0" - -[[projects]] - name = "github.com/grpc-ecosystem/grpc-gateway" - packages = [ - "protoc-gen-grpc-gateway", - "protoc-gen-grpc-gateway/descriptor", - "protoc-gen-grpc-gateway/generator", - "protoc-gen-grpc-gateway/gengateway", - "protoc-gen-grpc-gateway/httprule", - "runtime", - "runtime/internal", - "utilities", - ] - revision = "07f5e79768022f9a3265235f0db4ac8c3f675fec" - version = "v1.3.1" - -[[projects]] - branch = "master" - name = "github.com/grpc-ecosystem/grpc-opentracing" - packages = ["go/otgrpc"] - revision = "a570af39704b9f3d4bb530d83192a99ea6337d5a" - -[[projects]] - branch = "master" - name = "github.com/hashicorp/go-version" - packages = ["."] - revision = "fc61389e27c71d120f87031ca8c88a3428f372dd" - -[[projects]] - branch = "master" - name = "github.com/ianlancetaylor/cgosymbolizer" - packages = ["."] - revision = "f5072df9c550dc687157e5d7efb50825cdf8f0eb" - -[[projects]] - branch = "master" - name = "github.com/ianlancetaylor/demangle" - packages = ["."] - revision = "4883227f66371e02c4948937d3e2be1664d9be38" - -[[projects]] - name = "github.com/inconshreveable/mousetrap" - packages = ["."] - revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75" - version = "v1.0" - -[[projects]] - name = "github.com/jackc/pgx" - packages = [ - ".", - "chunkreader", - "internal/sanitize", - "pgio", - "pgproto3", - "pgtype", - ] - revision = "da3231b0b66e2e74cdb779f1d46c5e958ba8be27" - version = "v3.1.0" - -[[projects]] - name = "github.com/jmank88/nuts" - packages = ["."] - revision = "8b28145dffc87104e66d074f62ea8080edfad7c8" - version = "v0.3.0" - -[[projects]] - name = "github.com/jmespath/go-jmespath" - packages = ["."] - revision = "0b12d6b5" - -[[projects]] - branch = "master" - name = "github.com/jteeuwen/go-bindata" - packages = [ - ".", - "go-bindata", - ] - revision = "6b667f85196e80d8420d634ca3fecca389a53207" - source = "https://github.com/dim13/go-bindata" - -[[projects]] - branch = "master" - name = "github.com/kisielk/errcheck" - packages = [ - ".", - "internal/errcheck", - ] - revision = "b1445a9dd8285a50c6d1661d16f0a9ceb08125f7" - -[[projects]] - branch = "master" - name = "github.com/kisielk/gotool" - packages = [ - ".", - "internal/load", - ] - revision = "d6ce6262d87e3a4e153e86023ff56ae771554a41" - -[[projects]] - name = "github.com/knz/go-libedit" - packages = [ - ".", - "common", - "other", - "unix", - "unix/sigtramp", - ] - revision = "69b759d6ff84df6bbd39846dae3670625cc0361b" - version = "v1.7" - -[[projects]] - branch = "master" - name = "github.com/knz/strtime" - packages = ["."] - revision = "813725a7c183ac304d1ed8fb7e37a567733e9c05" - -[[projects]] - branch = "master" - name = "github.com/kr/logfmt" - packages = ["."] - revision = "b84e30acd515aadc4b783ad4ff83aff3299bdfe0" - -[[projects]] - branch = "master" - name = "github.com/kr/pretty" - packages = ["."] - revision = "cfb55aafdaf3ec08f0db22699ab822c50091b1c4" - -[[projects]] - branch = "master" - name = "github.com/kr/text" - packages = ["."] - revision = "7cafcd837844e784b526369c9bce262804aebc60" - -[[projects]] - branch = "master" - name = "github.com/lib/pq" - packages = [ - ".", - "oid", - ] - revision = "27ea5d92de30060e7121ddd543fe14e9a327e0cc" - -[[projects]] - name = "github.com/lightstep/lightstep-tracer-go" - packages = [ - ".", - "collectorpb", - "lightstep_thrift", - "lightsteppb", - "thrift_0_9_2/lib/go/thrift", - ] - revision = "ba38bae1f0ec1ece9092d35bbecbb497ee344cbc" - version = "v0.15.0" - -[[projects]] - name = "github.com/marstr/guid" - packages = ["."] - revision = "8bd9a64bf37eb297b492a4101fb28e80ac0b290f" - version = "v1.1.0" - -[[projects]] - name = "github.com/marusama/semaphore" - packages = ["."] - revision = "567f17206eaa3f28bd73e209620e2abaa65d7405" - version = "2.1.1" - -[[projects]] - name = "github.com/mattn/go-isatty" - packages = ["."] - revision = "0360b2af4f38e8d38c7fce2a9f4e702702d73a39" - version = "v0.0.3" - -[[projects]] - name = "github.com/mattn/go-runewidth" - packages = ["."] - revision = "9e777a8366cce605130a531d2cd6363d07ad7317" - version = "v0.0.2" - -[[projects]] - name = "github.com/mattn/goveralls" - packages = ["."] - revision = "b71a1e4855f87991aff01c2c833a75a07059c61c" - version = "v0.0.2" - -[[projects]] - name = "github.com/matttproud/golang_protobuf_extensions" - packages = ["pbutil"] - revision = "3247c84500bff8d9fb6d579d800f20b3e091582c" - version = "v1.0.0" - -[[projects]] - name = "github.com/mibk/dupl" - packages = [ - ".", - "job", - "output", - "suffixtree", - "syntax", - "syntax/golang", - ] - revision = "f008fcf5e62793d38bda510ee37aab8b0c68e76c" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "github.com/mitchellh/reflectwalk" - packages = ["."] - revision = "63d60e9d0dbc60cf9164e6510889b0db6683d98c" - -[[projects]] - branch = "master" - name = "github.com/montanaflynn/stats" - packages = ["."] - revision = "72625ec1691e40181ac5282a7f2ca4745952a7a7" - -[[projects]] - branch = "master" - name = "github.com/nightlyone/lockfile" - packages = ["."] - revision = "6a197d5ea61168f2ac821de2b7f011b250904900" - -[[projects]] - name = "github.com/nlopes/slack" - packages = ["."] - revision = "8ab4d0b364ef1e9af5d102531da20d5ec902b6c4" - version = "v0.2.0" - -[[projects]] - branch = "master" - name = "github.com/olekukonko/tablewriter" - packages = ["."] - revision = "b8a9be070da40449e501c3c4730a889e42d87a9e" - -[[projects]] - name = "github.com/opencontainers/go-digest" - packages = ["."] - revision = "279bed98673dd5bef374d3b6e4b09e2af76183bf" - version = "v1.0.0-rc1" - -[[projects]] - name = "github.com/opencontainers/image-spec" - packages = [ - "specs-go", - "specs-go/v1", - ] - revision = "ab7389ef9f50030c9b245bc16b981c7ddf192882" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "github.com/opennota/urlesc" - packages = ["."] - revision = "de5bf2ad457846296e2031421a34e2568e304e35" - -[[projects]] - branch = "master" - name = "github.com/opentracing-contrib/go-observer" - packages = ["."] - revision = "a52f2342449246d5bcc273e65cbdcfa5f7d6c63c" - -[[projects]] - name = "github.com/opentracing/opentracing-go" - packages = [ - ".", - "ext", - "log", - ] - revision = "1949ddbfd147afd4d964a9f00b24eb291e0e7c38" - version = "v1.0.2" - -[[projects]] - name = "github.com/openzipkin/zipkin-go-opentracing" - packages = [ - ".", - "flag", - "thrift/gen-go/scribe", - "thrift/gen-go/zipkincore", - "types", - "wire", - ] - revision = "45e90b00710a4c34a1a7d8a78d90f9b010b0bd4d" - version = "v0.3.2" - -[[projects]] - branch = "master" - name = "github.com/pelletier/go-toml" - packages = ["."] - revision = "05bcc0fb0d3e60da4b8dd5bd7e0ea563eb4ca943" - -[[projects]] - branch = "master" - name = "github.com/petar/GoLLRB" - packages = ["llrb"] - revision = "53be0d36a84c2a886ca057d34b6aa4468df9ccb4" - -[[projects]] - branch = "master" - name = "github.com/petermattis/goid" - packages = ["."] - revision = "b0b1615b78e5ee59739545bb38426383b2cda4c9" - -[[projects]] - name = "github.com/pierrec/lz4" - packages = ["."] - revision = "08c27939df1bd95e881e2c2367a749964ad1fceb" - version = "v1.0.1" - -[[projects]] - name = "github.com/pierrec/xxHash" - packages = ["xxHash32"] - revision = "f051bb7f1d1aaf1b5a665d74fb6b0217712c69f7" - version = "v0.1.1" - -[[projects]] - name = "github.com/pkg/errors" - packages = ["."] - revision = "645ef00459ed84a119197bfb8d8205042c6df63d" - version = "v0.8.0" - -[[projects]] - name = "github.com/pmezard/go-difflib" - packages = ["difflib"] - revision = "792786c7400a136282c1664665ae0a8db921c6c2" - version = "v1.0.0" - -[[projects]] - name = "github.com/prometheus/client_golang" - packages = [ - "prometheus", - "prometheus/graphite", - ] - revision = "967789050ba94deca04a5e84cce8ad472ce313c1" - version = "v0.9.0-pre1" - -[[projects]] - branch = "master" - name = "github.com/prometheus/client_model" - packages = ["go"] - revision = "6f3806018612930941127f2a7c6c453ba2c527d2" - -[[projects]] - branch = "master" - name = "github.com/prometheus/common" - packages = [ - "expfmt", - "internal/bitbucket.org/ww/goautoneg", - "model", - ] - revision = "1bab55dd05dbff384524a6a1c99006d9eb5f139b" - -[[projects]] - branch = "master" - name = "github.com/prometheus/procfs" - packages = [ - ".", - "internal/util", - "nfs", - "xfs", - ] - revision = "8b1c2da0d56deffdbb9e48d4414b4e674bd8083e" - -[[projects]] - branch = "master" - name = "github.com/rcrowley/go-metrics" - packages = [ - ".", - "exp", - ] - revision = "1f30fe9094a513ce4c700b9a54458bbb0c96996c" - -[[projects]] - branch = "master" - name = "github.com/rubyist/circuitbreaker" - packages = ["."] - revision = "2074adba5ddc7d5f7559448a9c3066573521c5bf" - -[[projects]] - name = "github.com/russross/blackfriday" - packages = ["."] - revision = "4048872b16cc0fc2c5fd9eacf0ed2c2fedaa0c8c" - version = "v1.5" - -[[projects]] - name = "github.com/sasha-s/go-deadlock" - packages = ["."] - revision = "03d40e5dbd5488667a13b3c2600b2f7c2886f02f" - version = "v0.2.0" - -[[projects]] - name = "github.com/satori/go.uuid" - packages = ["."] - revision = "f58768cc1a7a7e77a3bd49e98cdd21419399b6a3" - version = "v1.2.0" - -[[projects]] - branch = "master" - name = "github.com/sdboyer/constext" - packages = ["."] - revision = "836a144573533ea4da4e6929c235fd348aed1c80" - -[[projects]] - name = "github.com/sirupsen/logrus" - packages = ["."] - revision = "f006c2ac4710855cf0f916dd6b77acf6b048dc6e" - version = "v1.0.3" - -[[projects]] - name = "github.com/spf13/cobra" - packages = [ - ".", - "doc", - ] - revision = "7b2c5ac9fc04fc5efafb60700713d4fa609b777b" - version = "v0.0.1" - -[[projects]] - name = "github.com/spf13/pflag" - packages = ["."] - revision = "e57e3eeb33f795204c1ca35f56c44f83227c6e66" - version = "v1.0.0" - -[[projects]] - name = "github.com/stretchr/testify" - packages = [ - "assert", - "require", - ] - revision = "69483b4bd14f5845b5a1e55bca19e954e827f1d0" - version = "v1.1.4" - -[[projects]] - branch = "master" - name = "github.com/wadey/gocovmerge" - packages = ["."] - revision = "b5bfa59ec0adc420475f97f89b58045c721d761c" - -[[projects]] - branch = "master" - name = "github.com/xwb1989/sqlparser" - packages = [ - ".", - "dependency/bytes2", - "dependency/hack", - "dependency/querypb", - "dependency/sqltypes", - ] - revision = "6aff8615a33faf1f260a3a8f800456511505d5fd" - source = "https://github.com/dt/sqlparser" - -[[projects]] - name = "go.opencensus.io" - packages = [ - "exporter/stackdriver/propagation", - "internal", - "internal/tagencoding", - "plugin/ochttp", - "plugin/ochttp/propagation/b3", - "stats", - "stats/internal", - "stats/view", - "tag", - "trace", - "trace/internal", - "trace/propagation", - ] - revision = "0095aec66ae14801c6711210f6f0716411cefdd3" - version = "v0.8.0" - -[[projects]] - branch = "master" - name = "golang.org/x/crypto" - packages = [ - "bcrypt", - "blowfish", - "ssh/terminal", - ] - revision = "bd6f299fb381e4c3393d1c4b1f0b94f5e77650c8" - -[[projects]] - branch = "master" - name = "golang.org/x/net" - packages = [ - "context", - "context/ctxhttp", - "html", - "html/atom", - "http2", - "http2/hpack", - "idna", - "internal/timeseries", - "lex/httplex", - "proxy", - "trace", - ] - revision = "c73622c77280266305273cb545f54516ced95b93" - -[[projects]] - branch = "master" - name = "golang.org/x/oauth2" - packages = [ - ".", - "google", - "internal", - "jws", - "jwt", - ] - revision = "6881fee410a5daf86371371f9ad451b95e168b71" - -[[projects]] - branch = "master" - name = "golang.org/x/perf" - packages = [ - "benchstat", - "cmd/benchstat", - "internal/stats", - "storage", - "storage/benchfmt", - ] - revision = "4469e6ce8cc3920f1b42128b9d557bea2e08621a" - -[[projects]] - branch = "master" - name = "golang.org/x/sync" - packages = [ - "errgroup", - "syncmap", - ] - revision = "8e0aa688b654ef28caa72506fa5ec8dba9fc7690" - -[[projects]] - branch = "master" - name = "golang.org/x/sys" - packages = [ - "unix", - "windows", - ] - revision = "95c6576299259db960f6c5b9b69ea52422860fce" - -[[projects]] - name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - ] - revision = "470f45bf29f4147d6fbd7dfd0a02a848e49f5bf4" - -[[projects]] - branch = "master" - name = "golang.org/x/time" - packages = ["rate"] - revision = "6dc17368e09b0e8634d71cac8168d853e869a0c7" - -[[projects]] - branch = "master" - name = "golang.org/x/tools" - packages = [ - "cmd/goimports", - "cmd/goyacc", - "cmd/stringer", - "container/intsets", - "cover", - "go/ast/astutil", - "go/buildutil", - "go/gcexportdata", - "go/gcimporter15", - "go/loader", - "go/types/typeutil", - "imports", - ] - revision = "90b807ada4cc7ab5d1409d637b1f3beb5a776be7" - -[[projects]] - branch = "master" - name = "google.golang.org/api" - packages = [ - "gensupport", - "googleapi", - "googleapi/internal/uritemplates", - "googleapi/transport", - "internal", - "iterator", - "option", - "storage/v1", - "transport/http", - ] - revision = "9c79deebf7496e355d7e95d82d4af1fe4e769b2f" - -[[projects]] - name = "google.golang.org/appengine" - packages = [ - ".", - "internal", - "internal/app_identity", - "internal/base", - "internal/datastore", - "internal/log", - "internal/modules", - "internal/remote_api", - "internal/urlfetch", - "urlfetch", - ] - revision = "150dc57a1b433e64154302bdc40b6bb8aefa313a" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "google.golang.org/genproto" - packages = [ - "googleapis/api/annotations", - "googleapis/iam/v1", - "googleapis/rpc/code", - "googleapis/rpc/status", - ] - revision = "f676e0f3ac6395ff1a529ae59a6670878a8371a6" - -[[projects]] - branch = "master" - name = "google.golang.org/grpc" - packages = [ - ".", - "balancer", - "balancer/base", - "balancer/roundrobin", - "channelz", - "codes", - "connectivity", - "credentials", - "encoding", - "encoding/proto", - "grpclb/grpc_lb_v1/messages", - "grpclog", - "health/grpc_health_v1", - "internal", - "keepalive", - "metadata", - "naming", - "peer", - "resolver", - "resolver/dns", - "resolver/passthrough", - "stats", - "status", - "tap", - "transport", - ] - revision = "8f06f82ca394b1ac837d4b0c0cfa07188b0e9dee" - -[[projects]] - branch = "v2" - name = "gopkg.in/yaml.v2" - packages = ["."] - revision = "287cf08546ab5e7e37d55a84f7ed3fd1db036de5" - -[[projects]] - name = "honnef.co/go/tools" - packages = [ - "callgraph", - "callgraph/static", - "deprecated", - "functions", - "internal/sharedcheck", - "lint", - "simple", - "ssa", - "ssa/ssautil", - "staticcheck", - "staticcheck/vrp", - "unused", - ] - revision = "d73ab98e7c39fdcf9ba65062e43d34310f198353" - version = "2017.2.2" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "8022836223059aead87f6d7d6b9451a5d7ad8a20f4358cb709ccf2859f9c74ce" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/custom_source.lock b/dep/spec/fixtures/gopkg_locks/custom_source.lock deleted file mode 100644 index 8d026e4e5f..0000000000 --- a/dep/spec/fixtures/gopkg_locks/custom_source.lock +++ /dev/null @@ -1,22 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/bsm/ratelimit" - packages = ["."] - revision = "4a38dca83ebadb017e83301642fab61b1c17edb7" - version = "v2.0.0" - -[[projects]] - branch = "master" - name = "github.com/some/thing" - packages = ["."] - revision = "0b96aaa707760d6ab28d9b9d1913ff5993328bae" - source = "https://github.com/dgrijalva/jwt-go" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "677a622bfbc921ebb12df377c21012ff65974214b5d13a8fe77b2156c8d2f832" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/fider-0.5.lock b/dep/spec/fixtures/gopkg_locks/fider-0.5.lock deleted file mode 100644 index d60dc6cbc1..0000000000 --- a/dep/spec/fixtures/gopkg_locks/fider-0.5.lock +++ /dev/null @@ -1,187 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:97a0f8cd20d7c37ebcc83e462a98a408557ddccb172c1a172548c364c4fa4d92" - name = "cloud.google.com/go" - packages = ["compute/metadata"] - pruneopts = "" - revision = "5a9e19d4e1e41a734154e44a2132b358afb49a03" - version = "v0.13.0" - -[[projects]] - digest = "1:6098222470fe0172157ce9bbef5d2200df4edde17ee649c5d6e48330e4afa4c6" - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - pruneopts = "" - revision = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e" - version = "v3.2.0" - -[[projects]] - branch = "master" - digest = "1:3ab5705c74b6709740430c7b18600d2ee49508da329fb601e76089258d8dbd0f" - name = "github.com/goenning/letteravatar" - packages = ["."] - pruneopts = "" - revision = "553181ed4055278e356ce21812adb34ae487f88e" - -[[projects]] - branch = "master" - digest = "1:05f7dd1dc7530cd6b959f8b49660cd898f8dc9601b4e764ef9bdf211e6318774" - name = "github.com/golang/freetype" - packages = [ - ".", - "raster", - "truetype", - ] - pruneopts = "" - revision = "e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4" - -[[projects]] - branch = "master" - digest = "1:cabcfea19d9d5caa22b151a08f554a44654be0a59a89539ea1d37bc8cc40e240" - name = "github.com/golang/protobuf" - packages = ["proto"] - pruneopts = "" - revision = "ae59567b9aab61b50b2590679a62c3c044030b61" - -[[projects]] - digest = "1:eaa18118b73be68b0be2410a9797fe172f5e386243b6bff16fd5da4d22c9d966" - name = "github.com/gosimple/slug" - packages = ["."] - pruneopts = "" - revision = "e9f42fa127660e552d0ad2b589868d403a9be7c6" - version = "v1.1.1" - -[[projects]] - branch = "master" - digest = "1:566c0d1d07fdc4f4707a8d5602004d6377be8a2b4f98a84a05cf328285208d32" - name = "github.com/julienschmidt/httprouter" - packages = ["."] - pruneopts = "" - revision = "adbc77eec0d91467376ca515bc3a14b8434d0f18" - -[[projects]] - branch = "master" - digest = "1:09792d732b079867772cdbabdf7dc54ef9f9d04c998a9ce6226657151fccbb94" - name = "github.com/lib/pq" - packages = [ - ".", - "oid", - ] - pruneopts = "" - revision = "90697d60dd844d5ef6ff15135d0203f65d2f53b8" - -[[projects]] - branch = "master" - digest = "1:dbf4e16c65ac05df91dd12f5bb52ac7a0530e570a76f4855d157997850ebb1fa" - name = "github.com/rainycape/unidecode" - packages = ["."] - pruneopts = "" - revision = "cb7f23ec59bec0d61b19c56cd88cee3d0cc1870c" - -[[projects]] - digest = "1:1527313af610f96f1ea591b06bb46edfe8ae17f13d74d2e40c4fed7cd618e678" - name = "github.com/russross/blackfriday" - packages = ["."] - pruneopts = "" - revision = "cadec560ec52d93835bf2f15bd794700d3a2473b" - version = "v2.0.0" - -[[projects]] - branch = "master" - digest = "1:606fa779c7a80ab6a9ec5836cd12759f86cd6e1d82d5d60cf7ec5133e78c6cf8" - name = "github.com/shurcooL/sanitized_anchor_name" - packages = ["."] - pruneopts = "" - revision = "86672fcb3f950f35f2e675df2240550f2a50762f" - -[[projects]] - branch = "master" - digest = "1:2986531b68839ca01ad327308865099fa9b77aa8bc267dbad2e60ed39a1bb081" - name = "golang.org/x/crypto" - packages = [ - "acme", - "acme/autocert", - ] - pruneopts = "" - revision = "2c241ca3045ddc354463c376a9515d9f1f1390a4" - -[[projects]] - branch = "master" - digest = "1:28e108b7ce8dbc7148c9689da77078d4b22cb5e91faa5a85ea825d11739997e9" - name = "golang.org/x/image" - packages = [ - "draw", - "font", - "math/f64", - "math/fixed", - ] - pruneopts = "" - revision = "e20db36d77bd0cb36cea8fe49d5c37d82d21591f" - -[[projects]] - branch = "master" - digest = "1:4d72ed63792924162d3d65ac102e7c9e0e748fc33d80dbb4b044933ebd492468" - name = "golang.org/x/net" - packages = [ - "context", - "context/ctxhttp", - ] - pruneopts = "" - revision = "8351a756f30f1297fe94bbf4b767ec589c6ea6d0" - -[[projects]] - branch = "master" - digest = "1:a6237bd1fe4eed8524971a2923fcadb54e9584b19516a35d3f76f1c53f603cf9" - name = "golang.org/x/oauth2" - packages = [ - ".", - "facebook", - "github", - "google", - "internal", - "jws", - "jwt", - ] - pruneopts = "" - revision = "ef147856a6ddbb60760db74283d2424e98c87bff" - -[[projects]] - digest = "1:934fb8966f303ede63aa405e2c8d7f0a427a05ea8df335dfdc1833dd4d40756f" - name = "google.golang.org/appengine" - packages = [ - ".", - "internal", - "internal/app_identity", - "internal/base", - "internal/datastore", - "internal/log", - "internal/modules", - "internal/remote_api", - "internal/urlfetch", - "urlfetch", - ] - pruneopts = "" - revision = "150dc57a1b433e64154302bdc40b6bb8aefa313a" - version = "v1.0.0" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/dgrijalva/jwt-go", - "github.com/goenning/letteravatar", - "github.com/gosimple/slug", - "github.com/julienschmidt/httprouter", - "github.com/lib/pq", - "github.com/russross/blackfriday", - "golang.org/x/crypto/acme/autocert", - "golang.org/x/image/draw", - "golang.org/x/oauth2", - "golang.org/x/oauth2/facebook", - "golang.org/x/oauth2/github", - "golang.org/x/oauth2/google", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/fider.lock b/dep/spec/fixtures/gopkg_locks/fider.lock deleted file mode 100644 index 3e1ec9742b..0000000000 --- a/dep/spec/fixtures/gopkg_locks/fider.lock +++ /dev/null @@ -1,136 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "cloud.google.com/go" - packages = ["compute/metadata"] - revision = "5a9e19d4e1e41a734154e44a2132b358afb49a03" - version = "v0.13.0" - -[[projects]] - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - revision = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e" - version = "v3.2.0" - -[[projects]] - branch = "master" - name = "github.com/goenning/letteravatar" - packages = ["."] - revision = "553181ed4055278e356ce21812adb34ae487f88e" - -[[projects]] - branch = "master" - name = "github.com/golang/freetype" - packages = [ - ".", - "raster", - "truetype" - ] - revision = "e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4" - -[[projects]] - branch = "master" - name = "github.com/golang/protobuf" - packages = ["proto"] - revision = "ae59567b9aab61b50b2590679a62c3c044030b61" - -[[projects]] - name = "github.com/gosimple/slug" - packages = ["."] - revision = "e9f42fa127660e552d0ad2b589868d403a9be7c6" - version = "v1.1.1" - -[[projects]] - branch = "master" - name = "github.com/julienschmidt/httprouter" - packages = ["."] - revision = "adbc77eec0d91467376ca515bc3a14b8434d0f18" - -[[projects]] - branch = "master" - name = "github.com/lib/pq" - packages = [ - ".", - "oid" - ] - revision = "90697d60dd844d5ef6ff15135d0203f65d2f53b8" - -[[projects]] - branch = "master" - name = "github.com/rainycape/unidecode" - packages = ["."] - revision = "cb7f23ec59bec0d61b19c56cd88cee3d0cc1870c" - -[[projects]] - name = "github.com/russross/blackfriday" - packages = ["."] - revision = "55d61fa8aa702f59229e6cff85793c22e580eaf5" - version = "v1.5.1" - -[[projects]] - branch = "master" - name = "golang.org/x/crypto" - packages = [ - "acme", - "acme/autocert" - ] - revision = "2c241ca3045ddc354463c376a9515d9f1f1390a4" - -[[projects]] - branch = "master" - name = "golang.org/x/image" - packages = [ - "draw", - "font", - "math/f64", - "math/fixed" - ] - revision = "e20db36d77bd0cb36cea8fe49d5c37d82d21591f" - -[[projects]] - branch = "master" - name = "golang.org/x/net" - packages = [ - "context", - "context/ctxhttp" - ] - revision = "8351a756f30f1297fe94bbf4b767ec589c6ea6d0" - -[[projects]] - branch = "master" - name = "golang.org/x/oauth2" - packages = [ - ".", - "facebook", - "github", - "google", - "internal", - "jws", - "jwt" - ] - revision = "ef147856a6ddbb60760db74283d2424e98c87bff" - -[[projects]] - name = "google.golang.org/appengine" - packages = [ - ".", - "internal", - "internal/app_identity", - "internal/base", - "internal/datastore", - "internal/log", - "internal/modules", - "internal/remote_api", - "internal/urlfetch", - "urlfetch" - ] - revision = "150dc57a1b433e64154302bdc40b6bb8aefa313a" - version = "v1.0.0" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "01ff2ef749623d2bc5d0d46238992ffb3385f10d53ff2345ef6898b29fbb4bfd" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/flagr.lock b/dep/spec/fixtures/gopkg_locks/flagr.lock deleted file mode 100644 index a938ccf8e1..0000000000 --- a/dep/spec/fixtures/gopkg_locks/flagr.lock +++ /dev/null @@ -1,434 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/DataDog/datadog-go" - packages = ["statsd"] - revision = "e67964b4021ad3a334e748e8811eb3cd6becbc6e" - version = "2.1.0" - -[[projects]] - name = "github.com/PuerkitoBio/purell" - packages = ["."] - revision = "0bcb03f4b4d0a9428594752bd2a3b9aa0a9d4bd4" - version = "v1.1.0" - -[[projects]] - branch = "master" - name = "github.com/PuerkitoBio/urlesc" - packages = ["."] - revision = "de5bf2ad457846296e2031421a34e2568e304e35" - -[[projects]] - name = "github.com/Shopify/sarama" - packages = ["."] - revision = "35324cf48e33d8260e1c7c18854465a904ade249" - version = "v1.17.0" - -[[projects]] - name = "github.com/asaskevich/govalidator" - packages = ["."] - revision = "ccb8e960c48f04d6935e72476ae4a51028f9e22f" - version = "v9" - -[[projects]] - branch = "master" - name = "github.com/auth0/go-jwt-middleware" - packages = ["."] - revision = "5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd" - -[[projects]] - branch = "master" - name = "github.com/bouk/monkey" - packages = ["."] - revision = "5df1f207ff77e025801505ae4d903133a0b4353f" - -[[projects]] - branch = "master" - name = "github.com/brandur/simplebox" - packages = ["."] - revision = "84e9865bb03ad38c464043bf5382ce8c68ca5f0c" - -[[projects]] - name = "github.com/bsm/ratelimit" - packages = ["."] - revision = "4a38dca83ebadb017e83301642fab61b1c17edb7" - version = "v2.0.0" - -[[projects]] - name = "github.com/caarlos0/env" - packages = ["."] - revision = "1cddc31c48c56ecd700d873edb9fd5b6f5df922a" - version = "v3.3.0" - -[[projects]] - name = "github.com/certifi/gocertifi" - packages = ["."] - revision = "deb3ae2ef2610fde3330947281941c562861188b" - version = "2018.01.18" - -[[projects]] - name = "github.com/davecgh/go-spew" - packages = ["spew"] - revision = "346938d642f2ec3594ed81d874461961cd0faa76" - version = "v1.1.0" - -[[projects]] - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - revision = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e" - version = "v3.2.0" - -[[projects]] - name = "github.com/docker/go-units" - packages = ["."] - revision = "47565b4f722fb6ceae66b95f853feed578a4a51c" - version = "v0.3.3" - -[[projects]] - name = "github.com/eapache/go-resiliency" - packages = ["breaker"] - revision = "ea41b0fad31007accc7f806884dcdf3da98b79ce" - version = "v1.1.0" - -[[projects]] - branch = "master" - name = "github.com/eapache/go-xerial-snappy" - packages = ["."] - revision = "bb955e01b9346ac19dc29eb16586c90ded99a98c" - -[[projects]] - name = "github.com/eapache/queue" - packages = ["."] - revision = "44cc805cf13205b55f69e14bcb69867d1ae92f98" - version = "v1.1.0" - -[[projects]] - name = "github.com/evalphobia/logrus_sentry" - packages = ["."] - revision = "b78b27461c8163c45abf4ab3a8330d2b1ee9456a" - version = "v0.4.6" - -[[projects]] - branch = "master" - name = "github.com/getsentry/raven-go" - packages = ["."] - revision = "ed7bcb39ff10f39ab08e317ce16df282845852fa" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/analysis" - packages = ["."] - revision = "5957818e100395077187fb7ef3b8a28227af06c6" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/errors" - packages = ["."] - revision = "b2b2befaf267d082d779bcef52d682a47c779517" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/jsonpointer" - packages = ["."] - revision = "3a0015ad55fa9873f41605d3e8f28cd279c32ab2" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/jsonreference" - packages = ["."] - revision = "3fb327e6747da3043567ee86abd02bb6376b6be2" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/loads" - packages = ["."] - revision = "2a2b323bab96e6b1fdee110e57d959322446e9c9" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/runtime" - packages = [ - ".", - "flagext", - "logger", - "middleware", - "middleware/denco", - "middleware/header", - "middleware/untyped", - "security" - ] - revision = "90c7afbb4bd8b22431e1c32d65caf405abf170c3" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/spec" - packages = ["."] - revision = "bcff419492eeeb01f76e77d2ebc714dc97b607f5" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/strfmt" - packages = ["."] - revision = "481808443b00a14745fada967cb5eeff0f9b1df2" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/swag" - packages = ["."] - revision = "811b1089cde9dad18d4d0c2d09fbdbf28dbd27a5" - -[[projects]] - branch = "master" - name = "github.com/go-openapi/validate" - packages = ["."] - revision = "b0a3ed684d0fdd3e1eda00433382188ce8aa7169" - -[[projects]] - name = "github.com/go-sql-driver/mysql" - packages = ["."] - revision = "d523deb1b23d913de5bdada721a6071e71283618" - version = "v1.4.0" - -[[projects]] - branch = "master" - name = "github.com/gohttp/pprof" - packages = ["."] - revision = "c9d246cbb3ba6407f8b1decdfff558f0fe8f07e8" - -[[projects]] - branch = "master" - name = "github.com/golang/snappy" - packages = ["."] - revision = "2e65f85255dbc3072edf28d6b5b8efc472979f5a" - -[[projects]] - name = "github.com/jessevdk/go-flags" - packages = ["."] - revision = "c6ca198ec95c841fdb89fc0de7496fed11ab854e" - version = "v1.4.0" - -[[projects]] - name = "github.com/jinzhu/gorm" - packages = [ - ".", - "dialects/mysql", - "dialects/postgres", - "dialects/sqlite" - ] - revision = "6ed508ec6a4ecb3531899a69cbc746ccf65a4166" - version = "v1.9.1" - -[[projects]] - branch = "master" - name = "github.com/jinzhu/inflection" - packages = ["."] - revision = "04140366298a54a039076d798123ffa108fff46c" - -[[projects]] - branch = "master" - name = "github.com/lib/pq" - packages = [ - ".", - "hstore", - "oid" - ] - revision = "90697d60dd844d5ef6ff15135d0203f65d2f53b8" - -[[projects]] - branch = "master" - name = "github.com/mailru/easyjson" - packages = [ - "buffer", - "jlexer", - "jwriter" - ] - revision = "3fdea8d05856a0c8df22ed4bc71b3219245e4485" - -[[projects]] - name = "github.com/mattn/go-sqlite3" - packages = ["."] - revision = "25ecb14adfc7543176f7d85291ec7dba82c6f7e4" - version = "v1.9.0" - -[[projects]] - branch = "master" - name = "github.com/meatballhat/negroni-logrus" - packages = ["."] - revision = "31067281800f66f57548a7a32d9c6c5f963fef83" - -[[projects]] - branch = "master" - name = "github.com/mitchellh/mapstructure" - packages = ["."] - revision = "bb74f1db0675b241733089d5a1faa5dd8b0ef57b" - -[[projects]] - name = "github.com/newrelic/go-agent" - packages = [ - ".", - "internal", - "internal/cat", - "internal/jsonx", - "internal/logger", - "internal/sysinfo", - "internal/utilization" - ] - revision = "a5d75f2b4787aa1bbc76688187b2353f8ff581a6" - version = "v2.0.0" - -[[projects]] - name = "github.com/pierrec/lz4" - packages = [ - ".", - "internal/xxh32" - ] - revision = "6b9367c9ff401dbc54fabce3fb8d972e799b702d" - version = "v2.0.2" - -[[projects]] - name = "github.com/pkg/errors" - packages = ["."] - revision = "645ef00459ed84a119197bfb8d8205042c6df63d" - version = "v0.8.0" - -[[projects]] - name = "github.com/pmezard/go-difflib" - packages = ["difflib"] - revision = "792786c7400a136282c1664665ae0a8db921c6c2" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "github.com/prashantv/gostub" - packages = ["."] - revision = "5c68b99bb08825598e70739c40603c901ee58dba" - -[[projects]] - branch = "master" - name = "github.com/rcrowley/go-metrics" - packages = ["."] - revision = "e2704e165165ec55d062f5919b4b29494e9fa790" - -[[projects]] - name = "github.com/rs/cors" - packages = ["."] - revision = "ca016a06a5753f8ba03029c0aa5e54afb1bf713f" - version = "v1.4.0" - -[[projects]] - name = "github.com/sirupsen/logrus" - packages = ["."] - revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc" - version = "v1.0.5" - -[[projects]] - name = "github.com/spf13/cast" - packages = ["."] - revision = "8965335b8c7107321228e3e3702cab9832751bac" - version = "v1.2.0" - -[[projects]] - name = "github.com/stretchr/testify" - packages = ["assert"] - revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686" - version = "v1.2.2" - -[[projects]] - name = "github.com/urfave/negroni" - packages = ["."] - revision = "5dbbc83f748fc3ad38585842b0aedab546d0ea1e" - version = "v0.3.0" - -[[projects]] - branch = "master" - name = "github.com/yadvendar/negroni-newrelic-go-agent" - packages = ["."] - revision = "3dc58758cb67abc45ae91e8e7bb3d90bdc254dfb" - -[[projects]] - branch = "master" - name = "github.com/zhouzhuojie/conditions" - packages = ["."] - revision = "34882afc2ef77651b9e10ec8148ac7f95887f822" - -[[projects]] - branch = "master" - name = "golang.org/x/crypto" - packages = [ - "internal/subtle", - "nacl/secretbox", - "poly1305", - "salsa20/salsa", - "ssh/terminal" - ] - revision = "027cca12c2d63e3d62b670d901e8a2c95854feec" - -[[projects]] - branch = "master" - name = "golang.org/x/net" - packages = [ - "context", - "idna", - "netutil" - ] - revision = "db08ff08e8622530d9ed3a0e8ac279f6d4c02196" - -[[projects]] - branch = "master" - name = "golang.org/x/sys" - packages = [ - "unix", - "windows" - ] - revision = "6c888cc515d3ed83fc103cf1d84468aad274b0a7" - -[[projects]] - name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - "width" - ] - revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" - version = "v0.3.0" - -[[projects]] - name = "google.golang.org/appengine" - packages = ["cloudsql"] - revision = "b1f26356af11148e710935ed1ac8a7f5702c7612" - version = "v1.1.0" - -[[projects]] - branch = "v2" - name = "gopkg.in/mgo.v2" - packages = [ - "bson", - "internal/json" - ] - revision = "3f83fa5005286a7fe593b055f0d7771a7dce4655" - -[[projects]] - name = "gopkg.in/yaml.v2" - packages = ["."] - revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183" - version = "v2.2.1" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "a462c9ef93c43ec0d3e02c3a988cef9a4b411d5db504c79ed6372a23724c2124" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/fsnotify_dep.lock b/dep/spec/fixtures/gopkg_locks/fsnotify_dep.lock deleted file mode 100644 index 5faf702436..0000000000 --- a/dep/spec/fixtures/gopkg_locks/fsnotify_dep.lock +++ /dev/null @@ -1,17 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:cb5b2a45a3dd41c01ff779c54ae4c8aab0271d6d3b3f734c8a8bd2c890299ef2" - name = "gopkg.in/fsnotify.v1" - packages = ["."] - pruneopts = "" - revision = "836bfd95fecc0f1511dd66bdbf2b5b61ab8b00b6" - version = "v1.2.11" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = ["gopkg.in/fsnotify.v1"] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/fsnotify_trans_dep.lock b/dep/spec/fixtures/gopkg_locks/fsnotify_trans_dep.lock deleted file mode 100644 index 1733782604..0000000000 --- a/dep/spec/fixtures/gopkg_locks/fsnotify_trans_dep.lock +++ /dev/null @@ -1,34 +0,0 @@ - -[[projects]] - digest = "1:a7fd918fb5bd2188436785c0424f8a50b4addfedf37a2b14d796be2a927b8007" - name = "github.com/onsi/ginkgo" - packages = [ - ".", - "config", - "internal/codelocation", - "internal/containernode", - "internal/failer", - "internal/leafnodes", - "internal/remote", - "internal/spec", - "internal/spec_iterator", - "internal/specrunner", - "internal/suite", - "internal/testingtproxy", - "internal/writer", - "reporters", - "reporters/stenographer", - "reporters/stenographer/support/go-colorable", - "reporters/stenographer/support/go-isatty", - "types", - ] - pruneopts = "" - revision = "3774a09d95489ccaa16032e0770d08ea77ba6184" - version = "v1.6.0" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = ["github.com/onsi/ginkgo"] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/missing_version.lock b/dep/spec/fixtures/gopkg_locks/missing_version.lock deleted file mode 100644 index 419abe2c75..0000000000 --- a/dep/spec/fixtures/gopkg_locks/missing_version.lock +++ /dev/null @@ -1,25 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/caarlos0/env" - packages = ["."] - revision = "7110c4e2f569e729e19ad2d89fb3b5e3d159d8ca" - -[[projects]] - branch = "master" - name = "github.com/ericaro/frontmatter" - packages = ["."] - revision = "9fedef9406e420da012d078cd83645bbac08f291" - -[[projects]] - name = "gopkg.in/yaml.v2" - packages = ["."] - revision = "cd8b52f8269e0feb286dfeef29f8fe4d5b397e0b" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "14d02280921b594ef6f57d6a354733f6afafa49643803b7b70180ee7780a984c" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/no_version.lock b/dep/spec/fixtures/gopkg_locks/no_version.lock deleted file mode 100644 index 918ff4ebdb..0000000000 --- a/dep/spec/fixtures/gopkg_locks/no_version.lock +++ /dev/null @@ -1,15 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - revision = "fbcb3e4b637bdc5ef2257eb2d0fe1d914a499386" - version = "v1.0.1" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "eb62c15704b851f8626abe61ac342d43a2d3522af64b9c8aa89748486e3325cc" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/proxy_git_source.lock b/dep/spec/fixtures/gopkg_locks/proxy_git_source.lock deleted file mode 100644 index 348838f558..0000000000 --- a/dep/spec/fixtures/gopkg_locks/proxy_git_source.lock +++ /dev/null @@ -1,132 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:6e73003ecd35f4487a5e88270d3ca0a81bc80dc88053ac7e4dcfec5fba30d918" - name = "github.com/gogo/protobuf" - packages = [ - "proto", - "sortkeys", - ] - pruneopts = "" - revision = "636bf0302bc95575d69441b25a2603156ffdddf1" - version = "v1.1.1" - -[[projects]] - branch = "master" - digest = "1:107b233e45174dbab5b1324201d092ea9448e58243ab9f039e4c0f332e121e3a" - name = "github.com/golang/glog" - packages = ["."] - pruneopts = "" - revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" - -[[projects]] - branch = "master" - digest = "1:754f77e9c839b24778a4b64422236d38515301d2baeb63113aa3edc42e6af692" - name = "github.com/google/gofuzz" - packages = ["."] - pruneopts = "" - revision = "24818f796faf91cd76ec7bddd72458fbced7a6c1" - -[[projects]] - digest = "1:d5c1692d62c22b9ff5248d1c5f3850d06f7bc850f9ae6eec15c6601f774eef4f" - name = "github.com/jinzhu/gorm" - packages = ["."] - pruneopts = "" - revision = "5174cc5c242a728b435ea2be8a2f7f998e15429b" - version = "v1.0" - -[[projects]] - branch = "master" - digest = "1:d9a7385b84d8187fd94e0357045c6fa1147ca94caa56fdd539336c7c102fc728" - name = "github.com/jinzhu/inflection" - packages = ["."] - pruneopts = "" - revision = "04140366298a54a039076d798123ffa108fff46c" - -[[projects]] - branch = "master" - digest = "1:96d281cfaaa12ac602772da38ac85f00d59b1d3aa7bfe69d8ba334d6ee41e3e6" - name = "golang.org/x/net" - packages = [ - "http/httpguts", - "http2", - "http2/hpack", - "idna", - ] - pruneopts = "" - revision = "3673e40ba22529d22c3fd7c93e97b0ce50fa7bdd" - -[[projects]] - digest = "1:5acd3512b047305d49e8763eef7ba423901e85d5dd2fd1e71778a0ea8de10bd4" - name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - ] - pruneopts = "" - revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" - version = "v0.3.0" - -[[projects]] - digest = "1:75fb3fcfc73a8c723efde7777b40e8e8ff9babf30d8c56160d01beffea8a95a6" - name = "gopkg.in/inf.v0" - packages = ["."] - pruneopts = "" - revision = "d2d2541c53f18d2a059457998ce2876cc8e67cbf" - version = "v0.9.1" - -[[projects]] - branch = "master" - digest = "1:c4a1a585962341863994f38e614b990c55602f81ff6807eb042eae0ddf158b44" - name = "k8s.io/apimachinery" - packages = [ - "pkg/api/meta", - "pkg/api/resource", - "pkg/apis/meta/v1", - "pkg/apis/meta/v1beta1", - "pkg/conversion", - "pkg/conversion/queryparams", - "pkg/fields", - "pkg/labels", - "pkg/runtime", - "pkg/runtime/schema", - "pkg/selection", - "pkg/types", - "pkg/util/errors", - "pkg/util/intstr", - "pkg/util/json", - "pkg/util/naming", - "pkg/util/net", - "pkg/util/runtime", - "pkg/util/sets", - "pkg/util/validation", - "pkg/util/validation/field", - "pkg/util/wait", - "pkg/watch", - "third_party/forked/golang/reflect", - ] - pruneopts = "" - revision = "cbafd24d5796966031ae904aa88e2436a619ae8a" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/jinzhu/gorm", - "k8s.io/apimachinery/pkg/api/meta", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/proxy_git_source_not_found.lock b/dep/spec/fixtures/gopkg_locks/proxy_git_source_not_found.lock deleted file mode 100644 index fbea470abe..0000000000 --- a/dep/spec/fixtures/gopkg_locks/proxy_git_source_not_found.lock +++ /dev/null @@ -1,132 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:6e73003ecd35f4487a5e88270d3ca0a81bc80dc88053ac7e4dcfec5fba30d918" - name = "github.com/gogo/protobuf" - packages = [ - "proto", - "sortkeys", - ] - pruneopts = "" - revision = "636bf0302bc95575d69441b25a2603156ffdddf1" - version = "v1.1.1" - -[[projects]] - branch = "master" - digest = "1:107b233e45174dbab5b1324201d092ea9448e58243ab9f039e4c0f332e121e3a" - name = "github.com/golang/glog" - packages = ["."] - pruneopts = "" - revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" - -[[projects]] - branch = "master" - digest = "1:754f77e9c839b24778a4b64422236d38515301d2baeb63113aa3edc42e6af692" - name = "github.com/google/gofuzz" - packages = ["."] - pruneopts = "" - revision = "24818f796faf91cd76ec7bddd72458fbced7a6c1" - -[[projects]] - digest = "1:d5c1692d62c22b9ff5248d1c5f3850d06f7bc850f9ae6eec15c6601f774eef4f" - name = "github.com/jinzhu/gorm" - packages = ["."] - pruneopts = "" - revision = "5174cc5c242a728b435ea2be8a2f7f998e15429b" - version = "v1.0" - -[[projects]] - branch = "master" - digest = "1:d9a7385b84d8187fd94e0357045c6fa1147ca94caa56fdd539336c7c102fc728" - name = "github.com/jinzhu/inflection" - packages = ["."] - pruneopts = "" - revision = "04140366298a54a039076d798123ffa108fff46c" - -[[projects]] - branch = "master" - digest = "1:96d281cfaaa12ac602772da38ac85f00d59b1d3aa7bfe69d8ba334d6ee41e3e6" - name = "golang.org/x/net" - packages = [ - "http/httpguts", - "http2", - "http2/hpack", - "idna", - ] - pruneopts = "" - revision = "3673e40ba22529d22c3fd7c93e97b0ce50fa7bdd" - -[[projects]] - digest = "1:5acd3512b047305d49e8763eef7ba423901e85d5dd2fd1e71778a0ea8de10bd4" - name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - ] - pruneopts = "" - revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" - version = "v0.3.0" - -[[projects]] - digest = "1:75fb3fcfc73a8c723efde7777b40e8e8ff9babf30d8c56160d01beffea8a95a6" - name = "gopkg.in/inf.v0" - packages = ["."] - pruneopts = "" - revision = "d2d2541c53f18d2a059457998ce2876cc8e67cbf" - version = "v0.9.1" - -[[projects]] - branch = "master" - digest = "1:c4a1a585962341863994f38e614b990c55602f81ff6807eb042eae0ddf158b44" - name = "dependabot.com/unknown" - packages = [ - "pkg/api/meta", - "pkg/api/resource", - "pkg/apis/meta/v1", - "pkg/apis/meta/v1beta1", - "pkg/conversion", - "pkg/conversion/queryparams", - "pkg/fields", - "pkg/labels", - "pkg/runtime", - "pkg/runtime/schema", - "pkg/selection", - "pkg/types", - "pkg/util/errors", - "pkg/util/intstr", - "pkg/util/json", - "pkg/util/naming", - "pkg/util/net", - "pkg/util/runtime", - "pkg/util/sets", - "pkg/util/validation", - "pkg/util/validation/field", - "pkg/util/wait", - "pkg/watch", - "third_party/forked/golang/reflect", - ] - pruneopts = "" - revision = "cbafd24d5796966031ae904aa88e2436a619ae8a" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/jinzhu/gorm", - "dependabot.com/unknown/pkg/api/meta", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/proxy_git_source_unresolvable.lock b/dep/spec/fixtures/gopkg_locks/proxy_git_source_unresolvable.lock deleted file mode 100644 index e06d32ee1e..0000000000 --- a/dep/spec/fixtures/gopkg_locks/proxy_git_source_unresolvable.lock +++ /dev/null @@ -1,132 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:6e73003ecd35f4487a5e88270d3ca0a81bc80dc88053ac7e4dcfec5fba30d918" - name = "github.com/gogo/protobuf" - packages = [ - "proto", - "sortkeys", - ] - pruneopts = "" - revision = "636bf0302bc95575d69441b25a2603156ffdddf1" - version = "v1.1.1" - -[[projects]] - branch = "master" - digest = "1:107b233e45174dbab5b1324201d092ea9448e58243ab9f039e4c0f332e121e3a" - name = "github.com/golang/glog" - packages = ["."] - pruneopts = "" - revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" - -[[projects]] - branch = "master" - digest = "1:754f77e9c839b24778a4b64422236d38515301d2baeb63113aa3edc42e6af692" - name = "github.com/google/gofuzz" - packages = ["."] - pruneopts = "" - revision = "24818f796faf91cd76ec7bddd72458fbced7a6c1" - -[[projects]] - digest = "1:d5c1692d62c22b9ff5248d1c5f3850d06f7bc850f9ae6eec15c6601f774eef4f" - name = "github.com/jinzhu/gorm" - packages = ["."] - pruneopts = "" - revision = "5174cc5c242a728b435ea2be8a2f7f998e15429b" - version = "v1.0" - -[[projects]] - branch = "master" - digest = "1:d9a7385b84d8187fd94e0357045c6fa1147ca94caa56fdd539336c7c102fc728" - name = "github.com/jinzhu/inflection" - packages = ["."] - pruneopts = "" - revision = "04140366298a54a039076d798123ffa108fff46c" - -[[projects]] - branch = "master" - digest = "1:96d281cfaaa12ac602772da38ac85f00d59b1d3aa7bfe69d8ba334d6ee41e3e6" - name = "golang.org/x/net" - packages = [ - "http/httpguts", - "http2", - "http2/hpack", - "idna", - ] - pruneopts = "" - revision = "3673e40ba22529d22c3fd7c93e97b0ce50fa7bdd" - -[[projects]] - digest = "1:5acd3512b047305d49e8763eef7ba423901e85d5dd2fd1e71778a0ea8de10bd4" - name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - ] - pruneopts = "" - revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" - version = "v0.3.0" - -[[projects]] - digest = "1:75fb3fcfc73a8c723efde7777b40e8e8ff9babf30d8c56160d01beffea8a95a6" - name = "gopkg.in/inf.v0" - packages = ["."] - pruneopts = "" - revision = "d2d2541c53f18d2a059457998ce2876cc8e67cbf" - version = "v0.9.1" - -[[projects]] - branch = "master" - digest = "1:c4a1a585962341863994f38e614b990c55602f81ff6807eb042eae0ddf158b44" - name = "unresolvablelkajs.com/unknown" - packages = [ - "pkg/api/meta", - "pkg/api/resource", - "pkg/apis/meta/v1", - "pkg/apis/meta/v1beta1", - "pkg/conversion", - "pkg/conversion/queryparams", - "pkg/fields", - "pkg/labels", - "pkg/runtime", - "pkg/runtime/schema", - "pkg/selection", - "pkg/types", - "pkg/util/errors", - "pkg/util/intstr", - "pkg/util/json", - "pkg/util/naming", - "pkg/util/net", - "pkg/util/runtime", - "pkg/util/sets", - "pkg/util/validation", - "pkg/util/validation/field", - "pkg/util/wait", - "pkg/watch", - "third_party/forked/golang/reflect", - ] - pruneopts = "" - revision = "cbafd24d5796966031ae904aa88e2436a619ae8a" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/jinzhu/gorm", - "unresolvablelkajs.com/unknown/pkg/api/meta", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/tag_as_revision.lock b/dep/spec/fixtures/gopkg_locks/tag_as_revision.lock deleted file mode 100644 index f7ba7ae3ae..0000000000 --- a/dep/spec/fixtures/gopkg_locks/tag_as_revision.lock +++ /dev/null @@ -1,27 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "golang.org/x/text" - packages = [ - ".", - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "transform", - "unicode/cldr", - "unicode/norm" - ] - revision = "v0.2.0" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "2405704ac7a0b793021a0a72d2ff705b4a2c503b07b1e50382eecf14e46f2012" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/tag_as_version.lock b/dep/spec/fixtures/gopkg_locks/tag_as_version.lock deleted file mode 100644 index db535b3c79..0000000000 --- a/dep/spec/fixtures/gopkg_locks/tag_as_version.lock +++ /dev/null @@ -1,34 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:1063c535f6db061d4b171efc77d9004bc709d1bd4daea669824d294ce35a8386" - name = "github.com/bsm/ratelimit" - packages = ["."] - pruneopts = "" - revision = "4a38dca83ebadb017e83301642fab61b1c17edb7" - version = "v2.0.0" - -[[projects]] - digest = "1:d9cf334ee84f60ea8855a530f09ce9d7b81880ca35bb76b255b5d72ceb11f8bb" - name = "github.com/globalsign/mgo" - packages = [ - ".", - "bson", - "internal/json", - "internal/sasl", - "internal/scram", - ] - pruneopts = "" - revision = "efe0945164a7e582241f37ae8983c075f8f2e870" - version = "r2018.04.23" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/bsm/ratelimit", - "github.com/globalsign/mgo", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/tag_as_version_old.lock b/dep/spec/fixtures/gopkg_locks/tag_as_version_old.lock deleted file mode 100644 index a3f4666be1..0000000000 --- a/dep/spec/fixtures/gopkg_locks/tag_as_version_old.lock +++ /dev/null @@ -1,20 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/bsm/ratelimit" - packages = ["."] - revision = "4a38dca83ebadb017e83301642fab61b1c17edb7" - version = "v2.0.0" - -[[projects]] - branch = "master" - name = "github.com/globalsign/mgo" - packages = [".","bson","internal/json","internal/sasl","internal/scram"] - revision = "efe0945164a7e582241f37ae8983c075f8f2e870" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/tilda.lock b/dep/spec/fixtures/gopkg_locks/tilda.lock deleted file mode 100644 index 5f704f19c3..0000000000 --- a/dep/spec/fixtures/gopkg_locks/tilda.lock +++ /dev/null @@ -1,25 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:c8eb2c456143a9debe90b440a1222650c5159014bd414e1ce1be8ee38aae4d93" - name = "github.com/jinzhu/gorm" - packages = ["."] - pruneopts = "UT" - revision = "5174cc5c242a728b435ea2be8a2f7f998e15429b" - version = "v1.0" - -[[projects]] - branch = "master" - digest = "1:fd97437fbb6b7dce04132cf06775bd258cce305c44add58eb55ca86c6c325160" - name = "github.com/jinzhu/inflection" - packages = ["."] - pruneopts = "UT" - revision = "04140366298a54a039076d798123ffa108fff46c" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = ["github.com/jinzhu/gorm"] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/unreachable_source.lock b/dep/spec/fixtures/gopkg_locks/unreachable_source.lock deleted file mode 100644 index 09eb81a9d9..0000000000 --- a/dep/spec/fixtures/gopkg_locks/unreachable_source.lock +++ /dev/null @@ -1,15 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/dependabot/private-go-dep" - packages = ["."] - revision = "fbcb3e4b637bdc5ef2257eb2d0fe1d914a499386" - version = "v1.0.1" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "eb62c15704b851f8626abe61ac342d43a2d3522af64b9c8aa89748486e3325cc" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_locks/unused_constraint.lock b/dep/spec/fixtures/gopkg_locks/unused_constraint.lock deleted file mode 100644 index 0318928f37..0000000000 --- a/dep/spec/fixtures/gopkg_locks/unused_constraint.lock +++ /dev/null @@ -1,36 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:c3692f979ef363d5dde1651114898a2e65044f6dde3884434503b8fc1422f212" - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - pruneopts = "" - revision = "0987fb8fd48e32823701acdac19f5cfe47339de4" - version = "v1.0.2" - -[[projects]] - digest = "1:d5c1692d62c22b9ff5248d1c5f3850d06f7bc850f9ae6eec15c6601f774eef4f" - name = "github.com/jinzhu/gorm" - packages = ["."] - pruneopts = "" - revision = "5174cc5c242a728b435ea2be8a2f7f998e15429b" - version = "v1.0" - -[[projects]] - branch = "master" - digest = "1:d9a7385b84d8187fd94e0357045c6fa1147ca94caa56fdd539336c7c102fc728" - name = "github.com/jinzhu/inflection" - packages = ["."] - pruneopts = "" - revision = "04140366298a54a039076d798123ffa108fff46c" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/dgrijalva/jwt-go", - "github.com/jinzhu/gorm", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/dep/spec/fixtures/gopkg_tomls/bare_version.toml b/dep/spec/fixtures/gopkg_tomls/bare_version.toml deleted file mode 100644 index d7be5f37ce..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/bare_version.toml +++ /dev/null @@ -1,7 +0,0 @@ -required = [ - "github.com/dgrijalva/jwt-go", - ] - -[[constraint]] - name = "github.com/dgrijalva/jwt-go" - version = "1.0.0" diff --git a/dep/spec/fixtures/gopkg_tomls/branch.toml b/dep/spec/fixtures/gopkg_tomls/branch.toml deleted file mode 100644 index 86bb1d26fb..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/branch.toml +++ /dev/null @@ -1,8 +0,0 @@ -required = [ - "golang.org/x/text", - ] - -# The collation tables must never change. -[[constraint]] - name = "golang.org/x/text" - branch = "master" diff --git a/dep/spec/fixtures/gopkg_tomls/cockroach.toml b/dep/spec/fixtures/gopkg_tomls/cockroach.toml deleted file mode 100644 index ad9e923036..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/cockroach.toml +++ /dev/null @@ -1,112 +0,0 @@ -required = [ - "github.com/client9/misspell/cmd/misspell", - "github.com/cockroachdb/crlfmt", - "github.com/cockroachdb/stress", - "github.com/golang/dep/cmd/dep", - "github.com/golang/lint/golint", - "github.com/google/pprof", - "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway", - "github.com/jteeuwen/go-bindata/go-bindata", - "github.com/kisielk/errcheck", - "github.com/mattn/goveralls", - "github.com/mibk/dupl", - "github.com/wadey/gocovmerge", - "golang.org/x/perf/cmd/benchstat", - "golang.org/x/tools/cmd/goimports", - "golang.org/x/tools/cmd/goyacc", - "golang.org/x/tools/cmd/stringer", -] - -ignored = [ - # Non-existent package used by a toy program in c-deps/protobuf. - "github.com/google/protobuf/examples/tutorial", -] - -# The collation tables must never change. -[[constraint]] - name = "golang.org/x/text" - revision = "470f45bf29f4147d6fbd7dfd0a02a848e49f5bf4" - -# https://github.com/coreos/etcd/commit/f03ed33 -# -# https://github.com/coreos/etcd/commit/ce0ad377 -[[constraint]] - name = "github.com/coreos/etcd" - branch = "master" - -# Used for the API client; we want the latest. -[[constraint]] - name = "github.com/docker/docker" - branch = "master" - -# https://github.com/getsentry/raven-go/pull/139 -[[constraint]] - name = "github.com/getsentry/raven-go" - source = "https://github.com/cockroachdb/raven-go" - -# Used for benchmarks, should be recent. -[[constraint]] - name = "github.com/go-sql-driver/mysql" - branch = "master" - -# https://github.com/jteeuwen/go-bindata/pull/158 -[[constraint]] - name = "github.com/jteeuwen/go-bindata" - source = "https://github.com/dim13/go-bindata" - branch = "master" - -# https://github.com/montanaflynn/stats/releases (latest is 2015-10-14) -[[constraint]] - name = "github.com/montanaflynn/stats" - branch = "master" - -# https://github.com/rubyist/circuitbreaker/commit/af95830 -[[constraint]] - name = "github.com/rubyist/circuitbreaker" - branch = "master" - -# https://github.com/xwb1989/sqlparser/issues/31 -# https://github.com/xwb1989/sqlparser/issues/32 -[[constraint]] - name = "github.com/xwb1989/sqlparser" - source = "https://github.com/dt/sqlparser" - -# The master version of go.uuid has an incompatible interface and (as -# of 2018-06-06) a serious bug. Don't upgrade without making sure -# that bug is fixed. -# https://github.com/cockroachdb/cockroach/issues/26332 -[[constraint]] - name = "github.com/satori/go.uuid" - version = "v1.2.0" - -# github.com/docker/docker depends on a few functions not included in the -# latest release: reference.{FamiliarName,ParseNormalizedNamed,TagNameOnly}. -# -# https://github.com/docker/distribution/commit/429c75f -# https://github.com/docker/distribution/commit/2caeb61 -[[override]] - name = "github.com/docker/distribution" - branch = "master" - -[prune] - go-tests = true - unused-packages = true - - # Avoid pruning projects containing needed protos. - - [[prune.project]] - name = "github.com/gogo/protobuf" - unused-packages = false - - [[prune.project]] - name = "github.com/grpc-ecosystem/grpc-gateway" - unused-packages = false - - [[prune.project]] - name = "github.com/prometheus/client_model" - unused-packages = false - - # Contains packages with used C files. - [[prune.project]] - name = "github.com/knz/go-libedit" - unused-packages = false diff --git a/dep/spec/fixtures/gopkg_tomls/custom_source.toml b/dep/spec/fixtures/gopkg_tomls/custom_source.toml deleted file mode 100644 index 11c372a708..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/custom_source.toml +++ /dev/null @@ -1,14 +0,0 @@ -required = [ - "github.com/some/thing", - "github.com/bsm/ratelimit" - ] - -[[constraint]] - name = "github.com/some/thing" - branch = "master" - source = "https://github.com/dgrijalva/jwt-go" - -[[constraint]] - name = "github.com/bsm/ratelimit" - version = "2.0.0" - diff --git a/dep/spec/fixtures/gopkg_tomls/fider.toml b/dep/spec/fixtures/gopkg_tomls/fider.toml deleted file mode 100644 index c3f7214843..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/fider.toml +++ /dev/null @@ -1,32 +0,0 @@ - -[[constraint]] - name = "github.com/dgrijalva/jwt-go" - version = "^3.2.0" - -[[constraint]] - name = "github.com/gosimple/slug" - version = "^1.1.1" - -[[constraint]] - branch = "master" - name = "github.com/lib/pq" - -[[constraint]] - name = "github.com/russross/blackfriday" - version = "^1.5.1" - -[[constraint]] - branch = "master" - name = "golang.org/x/oauth2" - -[[constraint]] - branch = "master" - name = "github.com/goenning/letteravatar" - -[[constraint]] - branch = "master" - name = "github.com/julienschmidt/httprouter" - -[[constraint]] - branch = "master" - name = "golang.org/x/crypto" diff --git a/dep/spec/fixtures/gopkg_tomls/flagr.toml b/dep/spec/fixtures/gopkg_tomls/flagr.toml deleted file mode 100644 index a0c0535f59..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/flagr.toml +++ /dev/null @@ -1,154 +0,0 @@ -# Gopkg.toml example -# -# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" -# -# [prune] -# non-go = false -# go-tests = true -# unused-packages = true - - -[[constraint]] - name = "github.com/DataDog/datadog-go" - version = "2.1.0" - -[[constraint]] - name = "github.com/Shopify/sarama" - version = "1.17.0" - -[[constraint]] - branch = "master" - name = "github.com/auth0/go-jwt-middleware" - -[[constraint]] - branch = "master" - name = "github.com/brandur/simplebox" - -[[constraint]] - name = "github.com/bsm/ratelimit" - version = "2.0.0" - -[[constraint]] - name = "github.com/caarlos0/env" - version = "3.3.0" - -[[constraint]] - name = "github.com/davecgh/go-spew" - version = "1.1.0" - -[[constraint]] - name = "github.com/dgrijalva/jwt-go" - version = "3.2.0" - -[[constraint]] - name = "github.com/evalphobia/logrus_sentry" - version = "0.4.6" - -[[constraint]] - branch = "master" - name = "github.com/getsentry/raven-go" - -[[constraint]] - branch = "master" - name = "github.com/go-openapi/errors" - -[[constraint]] - branch = "master" - name = "github.com/go-openapi/loads" - -[[constraint]] - branch = "master" - name = "github.com/go-openapi/runtime" - -[[constraint]] - branch = "master" - name = "github.com/go-openapi/spec" - -[[constraint]] - branch = "master" - name = "github.com/go-openapi/strfmt" - -[[constraint]] - branch = "master" - name = "github.com/go-openapi/swag" - -[[constraint]] - branch = "master" - name = "github.com/go-openapi/validate" - -[[constraint]] - branch = "master" - name = "github.com/gohttp/pprof" - -[[constraint]] - name = "github.com/jessevdk/go-flags" - version = "1.4.0" - -[[constraint]] - name = "github.com/jinzhu/gorm" - version = "1.9.1" - -[[constraint]] - branch = "master" - name = "github.com/meatballhat/negroni-logrus" - -[[constraint]] - name = "github.com/newrelic/go-agent" - version = "2.0.0" - -[[constraint]] - branch = "master" - name = "github.com/prashantv/gostub" - -[[constraint]] - name = "github.com/rs/cors" - version = "1.4.0" - -[[constraint]] - name = "github.com/sirupsen/logrus" - version = "1.0.5" - -[[constraint]] - name = "github.com/spf13/cast" - version = "1.2.0" - -[[constraint]] - name = "github.com/stretchr/testify" - version = "1.2.2" - -[[constraint]] - name = "github.com/urfave/negroni" - version = "0.3.0" - -[[constraint]] - branch = "master" - name = "github.com/yadvendar/negroni-newrelic-go-agent" - -[[constraint]] - branch = "master" - name = "github.com/zhouzhuojie/conditions" - -[[constraint]] - branch = "master" - name = "golang.org/x/net" - -[prune] - go-tests = true - unused-packages = true diff --git a/dep/spec/fixtures/gopkg_tomls/fsnotify_dep.toml b/dep/spec/fixtures/gopkg_tomls/fsnotify_dep.toml deleted file mode 100644 index aab0fb079f..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/fsnotify_dep.toml +++ /dev/null @@ -1,12 +0,0 @@ - -# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md -# for detailed Gopkg.toml documentation. -# - -[[constraint]] - name = "gopkg.in/fsnotify.v1" - version = "~1.2.0" - -[[constraint]] - name = "github.com/BurntSushi/toml" - version = "~0.2.0" diff --git a/dep/spec/fixtures/gopkg_tomls/fsnotify_trans_dep.toml b/dep/spec/fixtures/gopkg_tomls/fsnotify_trans_dep.toml deleted file mode 100644 index 272e434091..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/fsnotify_trans_dep.toml +++ /dev/null @@ -1,3 +0,0 @@ -[[constraint]] - name = "github.com/onsi/ginkgo" - version = "1.6.0" diff --git a/dep/spec/fixtures/gopkg_tomls/missing_version.toml b/dep/spec/fixtures/gopkg_tomls/missing_version.toml deleted file mode 100644 index c5608fe06b..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/missing_version.toml +++ /dev/null @@ -1,6 +0,0 @@ -[[constraint]] - name = "github.com/caarlos0/env" - -[[constraint]] - branch = "master" - name = "github.com/ericaro/frontmatter" diff --git a/dep/spec/fixtures/gopkg_tomls/no_constraints.toml b/dep/spec/fixtures/gopkg_tomls/no_constraints.toml deleted file mode 100644 index 37fc54ba2b..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/no_constraints.toml +++ /dev/null @@ -1,3 +0,0 @@ -required = [ - "github.com/dgrijalva/jwt-go", - ] diff --git a/dep/spec/fixtures/gopkg_tomls/no_version.toml b/dep/spec/fixtures/gopkg_tomls/no_version.toml deleted file mode 100644 index b35ab64697..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/no_version.toml +++ /dev/null @@ -1,6 +0,0 @@ -required = [ - "github.com/dgrijalva/jwt-go", - ] - -[[constraint]] - name = "github.com/dgrijalva/jwt-go" diff --git a/dep/spec/fixtures/gopkg_tomls/proxy_git_source.toml b/dep/spec/fixtures/gopkg_tomls/proxy_git_source.toml deleted file mode 100644 index c5dd9ea048..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/proxy_git_source.toml +++ /dev/null @@ -1,3 +0,0 @@ -[[constraint]] - branch = "master" - name = "k8s.io/apimachinery" diff --git a/dep/spec/fixtures/gopkg_tomls/proxy_git_source_not_found.toml b/dep/spec/fixtures/gopkg_tomls/proxy_git_source_not_found.toml deleted file mode 100644 index f2c8ca9e4e..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/proxy_git_source_not_found.toml +++ /dev/null @@ -1,3 +0,0 @@ -[[constraint]] - branch = "master" - name = "dependabot.com/unknown" diff --git a/dep/spec/fixtures/gopkg_tomls/proxy_git_source_unresolvable.toml b/dep/spec/fixtures/gopkg_tomls/proxy_git_source_unresolvable.toml deleted file mode 100644 index ae053b24c3..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/proxy_git_source_unresolvable.toml +++ /dev/null @@ -1,3 +0,0 @@ -[[constraint]] - branch = "master" - name = "unresolvablelkajs.com/unknown" diff --git a/dep/spec/fixtures/gopkg_tomls/tag_as_revision.toml b/dep/spec/fixtures/gopkg_tomls/tag_as_revision.toml deleted file mode 100644 index c785976ea3..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/tag_as_revision.toml +++ /dev/null @@ -1,8 +0,0 @@ -required = [ - "golang.org/x/text", - ] - -# The collation tables must never change. -[[constraint]] - name = "golang.org/x/text" - revision = "v0.2.0" diff --git a/dep/spec/fixtures/gopkg_tomls/tag_as_version.toml b/dep/spec/fixtures/gopkg_tomls/tag_as_version.toml deleted file mode 100644 index 8f3cabc7a9..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/tag_as_version.toml +++ /dev/null @@ -1,14 +0,0 @@ -required = [ - "github.com/globalsign/mgo", - "github.com/bsm/ratelimit" - ] - -# The collation tables must never change. -[[constraint]] - name = "github.com/globalsign/mgo" - version = "r2018.04.23" - -[[constraint]] - name = "github.com/bsm/ratelimit" - version = "2.0.0" - diff --git a/dep/spec/fixtures/gopkg_tomls/tilda.toml b/dep/spec/fixtures/gopkg_tomls/tilda.toml deleted file mode 100644 index 983a73c239..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/tilda.toml +++ /dev/null @@ -1,7 +0,0 @@ -[[constraint]] - name = "github.com/jinzhu/gorm" - version = "~1.0.0" - -[prune] - go-tests = true - unused-packages = true diff --git a/dep/spec/fixtures/gopkg_tomls/unreachable_source.toml b/dep/spec/fixtures/gopkg_tomls/unreachable_source.toml deleted file mode 100644 index 537347dbdc..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/unreachable_source.toml +++ /dev/null @@ -1,7 +0,0 @@ -required = [ - "github.com/dependabot/private-go-dep", - ] - -[[constraint]] - name = "github.com/dependabot/private-go-dep" - version = "1.0.0" diff --git a/dep/spec/fixtures/gopkg_tomls/unused_constraint.toml b/dep/spec/fixtures/gopkg_tomls/unused_constraint.toml deleted file mode 100644 index 4842981abf..0000000000 --- a/dep/spec/fixtures/gopkg_tomls/unused_constraint.toml +++ /dev/null @@ -1,11 +0,0 @@ -required = [ - "github.com/dgrijalva/jwt-go", - ] - -[[constraint]] - name = "github.com/dgrijalva/jwt-go" - version = "1.0.0" - -[[constraint]] - name = "github.com/davecgh/go-spew" - version = "1.1.0" diff --git a/dep/spec/fixtures/repo_responses/golang_org_text.html b/dep/spec/fixtures/repo_responses/golang_org_text.html deleted file mode 100644 index 28bcb64b09..0000000000 --- a/dep/spec/fixtures/repo_responses/golang_org_text.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - Nothing to see here; move along. - - diff --git a/dep/spec/fixtures/repo_responses/k8s_io_apimachinery.html b/dep/spec/fixtures/repo_responses/k8s_io_apimachinery.html deleted file mode 100644 index 496567959a..0000000000 --- a/dep/spec/fixtures/repo_responses/k8s_io_apimachinery.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/dep/spec/fixtures/repo_responses/unknown_git_source.html b/dep/spec/fixtures/repo_responses/unknown_git_source.html deleted file mode 100644 index a749116d9c..0000000000 --- a/dep/spec/fixtures/repo_responses/unknown_git_source.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/dep/spec/spec_helper.rb b/dep/spec/spec_helper.rb deleted file mode 100644 index 6dcb854b37..0000000000 --- a/dep/spec/spec_helper.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -def common_dir - @common_dir ||= Gem::Specification.find_by_name("dependabot-common").gem_dir -end - -def require_common_spec(path) - require "#{common_dir}/spec/dependabot/#{path}" -end - -require "#{common_dir}/spec/spec_helper.rb" diff --git a/omnibus/Gemfile b/omnibus/Gemfile index 3eb8030952..39abf13dc2 100644 --- a/omnibus/Gemfile +++ b/omnibus/Gemfile @@ -6,7 +6,6 @@ gem "dependabot-bundler", path: "../bundler" gem "dependabot-cargo", path: "../cargo" gem "dependabot-common", path: "../common" gem "dependabot-composer", path: "../composer" -gem "dependabot-dep", path: "../dep" gem "dependabot-docker", path: "../docker" gem "dependabot-elm", path: "../elm" gem "dependabot-github_actions", path: "../github_actions" diff --git a/omnibus/dependabot-omnibus.gemspec b/omnibus/dependabot-omnibus.gemspec index a327ad1c04..ecd01e9c0b 100644 --- a/omnibus/dependabot-omnibus.gemspec +++ b/omnibus/dependabot-omnibus.gemspec @@ -25,7 +25,6 @@ Gem::Specification.new do |spec| spec.add_dependency "dependabot-cargo", Dependabot::VERSION spec.add_dependency "dependabot-common", Dependabot::VERSION spec.add_dependency "dependabot-composer", Dependabot::VERSION - spec.add_dependency "dependabot-dep", Dependabot::VERSION spec.add_dependency "dependabot-docker", Dependabot::VERSION spec.add_dependency "dependabot-elm", Dependabot::VERSION spec.add_dependency "dependabot-github_actions", Dependabot::VERSION diff --git a/omnibus/lib/dependabot/omnibus.rb b/omnibus/lib/dependabot/omnibus.rb index 3d6b9cfb7b..04a8a37c22 100644 --- a/omnibus/lib/dependabot/omnibus.rb +++ b/omnibus/lib/dependabot/omnibus.rb @@ -14,5 +14,4 @@ require "dependabot/cargo" require "dependabot/go_modules" require "dependabot/npm_and_yarn" -require "dependabot/dep" require "dependabot/bundler"