Skip to content
Snippets Groups Projects
Commit d3db247e authored by Georges Racinet's avatar Georges Racinet
Browse files

Adding go-license-detector

This is a new binary executable dependency of HGitaly introduced for
hgitaly#161. It is also a *library* dependency of Gitaly.
parent f4cdfe43
1 merge request!104Merge heptapod-stable branch into heptapod
Pipeline #73425 passed
Pipeline: heptapod-tests

#73428

    ......@@ -130,6 +130,10 @@
    jemalloc:
    remote: "git@dev.gitlab.org:omnibus-mirror/jemalloc.git"
    alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/jemalloc.git"
    # Heptapod-specific:
    go-bindata:
    remote: "https://github.com/jteeuwen/go-bindata"
    alternative: "https://github.com/jteeuwen/go-bindata"
    go-crond:
    remote: "git@dev.gitlab.org:omnibus-mirror/go-crond.git"
    alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/go-crond.git"
    ......@@ -133,6 +137,11 @@
    go-crond:
    remote: "git@dev.gitlab.org:omnibus-mirror/go-crond.git"
    alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/go-crond.git"
    # Heptapod-specific:
    go-license-detector:
    remote: "https://github.com/go-enry/go-license-detector.git"
    # no real alternative at this point:
    alternative: "https://github.com/go-enry/go-license-detector.git"
    consul:
    remote: "git@dev.gitlab.org:omnibus-mirror/consul.git"
    alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/consul.git"
    ......
    ......@@ -106,6 +106,7 @@
    end
    end
    dependency 'go-license-detector'
    dependency 'cacerts'
    dependency 'redis'
    dependency 'nginx'
    ......
    # Copyright:: Copyright (c) 2023 Georges Racinet <georges.racinet@octobus.net>
    # License:: Apache License, Version 2.0
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    # http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    name 'go-bindata'
    # same version and full package name as in go-license-detector v4.3.0 Makefile
    go_pkg = 'github.com/jteeuwen/go-bindata/go-bindata'
    version = '6025e8de665b31fa74ab1a66f2cddd8c0abf887e'
    default_version version
    license 'CC0-1.0'
    license_file 'LICENSE'
    # no `source` directive, hence using the NullFetcher (see comment in
    # gitlab-shell.rb)
    relative_path 'src/github.com/jteeuwen/go-bindata'
    build do
    env = {
    'GOPATH' => "#{Omnibus::Config.source_dir}/go-bindata",
    'GOBIN' => "#{install_dir}/embedded/bin/"
    }
    command "go install #{go_pkg}@#{default_version}", env: env
    end
    # Copyright:: Copyright (c) 2023 Georges Racinet <georges.racinet@octobus.net>
    # License:: Apache License, Version 2.0
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    # http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    name 'go-license-detector'
    version = Gitlab::Version.new('go-license-detector', 'v4.3.0')
    default_version version.print(false)
    license 'Apache-2.0'
    license_file 'LICENSE.md'
    source git: version.remote
    relative_path 'src/github.com/go-enry/go-license-detector'
    dependency 'go-bindata'
    build do
    env = {
    'GOPATH' => "#{Omnibus::Config.source_dir}/go-license-detector",
    }
    mkdir "#{install_dir}/embedded/bin/"
    command "go build cmd/license-detector/main.go"
    copy 'main', "#{install_dir}/embedded/bin/license-detector"
    end
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment