go-mod-details

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-mod-details


An action that returns details about a go.mod file.

Inputs

modfile

Path to the go.mod file that should be parsed (optional)

Outputs

modfile

Path to the go.mod file that was parsed

go_version

The go version that is defined in the go.mod file

module

The module name defined in the go.mod file

require_json

The required modules in json format

exclude_json

The excluded modules in json format

replace_json

The replaced modules in json format

retract_json

The retracted statements in json format

Example

steps:
  -
    name: Checkout code
    uses: actions/checkout@v2
  -
    name: Get go.mod details
    uses: Eun/go-mod-details@v1
    id: go-mod-details
  -
    name: Install Go
    uses: actions/setup-go@v1
    with:
      go-version: ${{ steps.get-mod-details.outputs.go_version }}
  -
    name: Test
    run: go test -v ./...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址