Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/fabric8-services/build-tool-detector

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/fabric8-services/build-tool-detector

  • v0.0.0-20190208143048-36a2d2f37063
  • Source
  • Go
  • Socket score

Version published
Created
Source

= Build Tool Detector Little service which will detect what build tool you are using.

=== Build [[build]]

==== Pre-requisites

  • link:https://golang.org/doc/install[Golang prerequisites] and $GOPATH setup. NOTE: Stick to Golang version 1.11 because of link:https://github.com/goadesign/goa/pull/1548[goa and golang 1.11]. Have a look how link:https://github.com/moovweb/gvm[Go Version Manager] can help you simplifying configuration and management of different versions of Go.

  • clone the repo in your GOPATH: [source,bash]


$ git clone https://github.com/fabric8-services/build-tool-detector $GOPATH/src/github.com/fabric8-services/build-tool-detector

==== Build

[source,bash]

$ make build

This will perform following actions: fetch dependencies, generate Goa files from design folder, compile. When in doubt just make help.

==== Usage [source,bash]

$ export TOKEN=XXXX $ curl -X GET "http://localhost:8099/api/detect/build/https%3A%2F%2Fgithub.com%2Ffabric8-launcher%2Flauncher-backend" -H "accept: application/vnd.goa.build.tool.detector+json" -H "Authorization: Bearer $TOKEN" {"build-tool-type":"maven"}

where:

=== Test [[test]]

In order to continuously run the tests whenever code change occur execute following command from the root directory of the project:

[source,bash]

$ make test

and keep it running in the terminal.

=== Run [[run]]

Run the server:

[source,bash]

$ make run

NOTE: Our service's configuration uses viper. To setup dependent service like fabric8-auth prod or prod-preview, please check link:/config/configuration.go[configuration file] or set env variable like BUILD_TOOL_DETECTOR_AUTH_URI

FAQs

Package last updated on 08 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc