google / google/flow-lens

Using git diff doesn't provide flow file on Windows OS

Open
#38 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
81
Forks
11
PR merge metrics
No merged PRs in 30d

Description

## What is the problem?

When i launch `deno run --allow-read --allow-write --allow-env --allow-run jsr:@goog/flow-lens --gitDiffFromHash="HEAD~" --gitDiffToHash="HEAD" --outputDirectory="." --outputFileName="test"` on a terminal, the test.json file looks like `[]`

### What is the expected result?

I expected the result i get with the parameter --filePath because, i just created that flow to test the use of flow_lens.
`deno run --allow-read --allow-write --allow-env --allow-run jsr:@goog/flow-lens --mode="json" --diagramTool="graphviz" --filePath="force-app/main/default/flows/AccountContactRelation_AfterSave_UpdateRolesCaseSubscribers.flow-meta.xml" --outputDirectory="." --outputFileName="test"`

```
[
{
"path": "force-app/main/default/flows/AccountContactRelation_AfterSave_UpdateRolesCaseSubscribers.flow-meta.xml",
"difference": {
"new": "digraph {[...]}"
}
}
]
```

## Steps to reproduce

I created a feature/ branch, I copied a flow from an active project and commited it.
I installed deno with npm then used the previous commands mentionned

## Execution context

**npm version:** 10.9.1

**node version:** 22.14.0

**git version:** 2.47.0.windows.2

**sf version:** 2.80.12

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.