This step runs the go list ./... command for you to list the go packages named by the import paths, starting from the current working directory.
It can return a filtered package list in line with the exclude patterns.
Examples
List packages in the working directory excluding vendor/*
---
format_version: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
workflows:
release:
steps:
- git-clone: {}
- go-list@0:
inputs:
- exclude: vendor/*
Configuration
| Parameter |
Description |
Required |
Default |
| exclude |
Exclude patterns |
- |
"/vendor/" |
Outputs
| Environment Variable |
Description |
| BITRISE_GO_PACKAGES |
List of go packages |
Contributing
We welcome pull requests and issues against this repository.
For pull requests, work on your changes in a forked repository and use the bitrise cli to run your tests locally
Creating your own steps
Follow this guide if you would like to create your own step