Skip to content

Dynamic require of "os" is not supported #49

@faburem

Description

@faburem

Issue:
Autotag version 1.1.4 does not create a new tag, but raises the following error when used as Github action:

Run butlerlogic/[email protected]
  with:
    strategy: package
    tag_message: 🐛 fix github actions build
    root: ./
    min_version: 0.0.1
  env:
    GITHUB_TOKEN: ***
file:///home/runner/work/_actions/butlerlogic/action-autotag/1.1.4/dist/main.js:1[2](https://github.com/kromitgmbh/titra/actions/runs/8294522044/job/22699699681#step:3:2)
  throw new Error('Dynamic require of "' + x + '" is not supported');
        ^

Error: Dynamic require of "os" is not supported
    at file:///home/runner/work/_actions/butlerlogic/action-autotag/1.1.4/dist/main.js:12:9
    at node_modules/@actions/core/lib/command.js (file:///home/runner/work/_actions/butlerlogic/action-autotag/1.1.4/dist/main.js:96:28)
    at __require2 (file:///home/runner/work/_actions/butlerlogic/action-autotag/1.1.4/dist/main.js:15:50)
    at node_modules/@actions/core/lib/core.js (file:///home/runner/work/_actions/butlerlogic/action-autotag/1.1.4/dist/main.js:18[3](https://github.com/kromitgmbh/titra/actions/runs/8294522044/job/22699699681#step:3:3)[4](https://github.com/kromitgmbh/titra/actions/runs/8294522044/job/22699699681#step:3:4)0:21)
    at __require2 (file:///home/runner/work/_actions/butlerlogic/action-autotag/1.1.4/dist/main.js:1[5](https://github.com/kromitgmbh/titra/actions/runs/8294522044/job/22699699681#step:3:5):50)
    at file:///home/runner/work/_actions/butlerlogic/action-autotag/1.1.4/dist/main.js:20944:21
    at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:31[6](https://github.com/kromitgmbh/titra/actions/runs/8294522044/job/22699699681#step:3:6):24)
    at async loadESM (node:internal/process/esm_loader:34:[7](https://github.com/kromitgmbh/titra/actions/runs/8294522044/job/22699699681#step:3:7))
    at async handleMainPromise (node:internal/modules/run_main:66:12)

Node.js v20.[8](https://github.com/kromitgmbh/titra/actions/runs/8294522044/job/22699699681#step:3:8).1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions