Skip to content

[BUG]: Addlicense command not found during workflow run #215

@Tatianah3

Description

@Tatianah3

Severity

Breaking Bug (functionality doesn't work at all)

Priority

High (significantly impacts usability)

Steps to Reproduce

  1. Set up the repository and ensure the GitHub Actions workflow is configured.
  2. Trigger the GitHub Actions workflow.
  3. Observe the step running the command:
    addlicense --check -l mit -y 2025 --copyright "Copyright (c) 2025, Steve Morin" .
  4. See the error:
/home/runner/work/_temp/902f6e03-87f2-45fe-9e86-569525f506b6.sh: line 1: addlicense: command not found
Error: Process completed

Expected Behavior

The workflow should successfully run the addlicense command, checking licenses in the repository, without any errors.

Actual Behavior

The workflow failed with the error:

/home/runner/work/_temp/902f6e03-87f2-45fe-9e86-569525f506b6.sh: line 1: addlicense: command not found
Error: Process completed

This indicates that the addlicense command is not installed or available in the environment during the workflow execution.

System Information

Debug Information

  • Date: Sun Apr 27 10:15:22 PDT 2025
  • OS: Darwin
  • macOS Version: 15.4.1
  • Kernel: 24.4.0
  • Architecture: arm64

Development Tools

  • Python: Python 3.11.7
  • uv: uv 0.1.24
  • ruff: ruff 0.1.9
  • git: git version 2.43.0
  • just: just 1.21.0

Screenshots

No response

Logs

/home/runner/work/_temp/902f6e03-87f2-45fe-9e86-569525f506b6.sh: line 1: addlicense: command not found
Error: Process completed

Possible Solution

Add a step in the GitHub Actions workflow to install the addlicense tool before running the command. For example:
- name: Install addlicense run: | go install github.com/google/addlicense@latest export PATH=$PATH:$(go env GOPATH)/bin

Contribution

Yes, I'd be willing to work on a fix

Pre-submission Confirmation

Yes

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions