semantic-release / semantic-release/git

Unable to exclude subdirectories from assets

Open
#377 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
339
Forks
75
Avg merge
5h 15m
Merged PRs (30d)
6

Description

While to trying to commit the docs folder inside the assets configuration, we need to exclude the node_modules folder inside the docs folder. Based on the documentation, i tried below options but none seems to work.

"assets": [["docs", "!node_modules/*"]] "assets": [["docs/**", "!**/node_modules"]] "assets": [["docs", "!node_modules"]]

The error i get is below:
[semantic-release] An error occurred while running semantic-release: Error: Command failed with E2BIG:

I think i am messing up the syntax but unable to figure out. Any help is appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the assets configuration with the attempted exclusion patterns and the docs/node_modules layout described in the report. Trace how the assets setting is interpreted and why it produces E2BIG. Done means a valid configuration excludes the nested node_modules directory without the error, with coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.