Project: square brackets in a path name break things

Open Beginner friendly
#1,551 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Reproduce the problem by checking out a project under a path such as proj[v1] and running openfn project deploy. Start at the openfn project deploy entry point and the Project.from('fs') filesystem workflow loading. Done means deployment no longer interprets square brackets in the project path as glob syntax or proposes removing workflows.

Written by the indexing model from the issue text.

Description

  • check out a project into a folder called proj[v1] or something. Anything with square brackets.
  • run openfn project deploy
  • It will tell you it wants to remove all workflows!!

basically what's happening here is when running Project.from('fs'), we generate a glob pattern to load workflow files from the file system. That glob breaks when there are certian characters in the name

Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

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.

More from OpenFn/kit

All issues in OpenFn/kit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.