Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: fails on selfhosted github runner because it takes / as working dir #54

Open
Elyytscha opened this issue Oct 1, 2024 · 0 comments

Comments

@Elyytscha
Copy link

Elyytscha commented Oct 1, 2024

I'm not sure if this is an issue in general or only with selfhosted github runner, but we had the following issue:

Run quizlet/argocd-diff-action@master
Fetching apps from: https://argocd.example.com/api/v[1](https://github.com/<redacted>#step:3:1)/applications
Changed files: .github/workflows/argo-diff.yaml, base/operators/kustomization.yaml, base/operators/mongodb-atlas/kustomization.yaml, base/operators/mongodb-atlas/operator-group.yaml, base/operators/mongodb-atlas/operator-ns.yaml, base/operators/mongodb-atlas/subscription.yaml, customer/infra/operators/kustomization.yaml
Found apps: operators
Running: argocd app diff operators --local=./customer/infra/operators
stdout: 
stderr: Warning: local diff without --server-side-generate is deprecated and does not work with plugins. Server-side generation will be the default in v2.7.time="2024-09-30T[12](https://github.com/<redacted>#step:3:13):24:02Z" level=info msg="kustomize build ./customer/infra/operators --enable-helm --load-restrictor=LoadRestrictionsNone" dir=/ execID=6eeb0
time="2024-09-30T12:24:02Z" level=error msg="`kustomize build ./customer/infra/operators --enable-helm --load-restrictor=LoadRestrictionsNone` failed exit status 1: Error: must build at directory: not a valid directory: evalsymlink failure on './customer/infra/operators' : lstat /customer: no such file or directory" execID=6eeb0
time="2024-09-30T12:24:02Z" level=info msg=Trace args="[kustomize build ./customer/infra/operators --enable-helm --load-restrictor=LoadRestrictionsNone]" dir=/ operation_name="exec kustomize" time_ms=7.63694
time="2024-09-30T12:24:02Z" level=fatal msg="`kustomize build ./customer/infra/operators --enable-helm --load-restrictor=LoadRestrictionsNone` failed exit status 1: Error: must build at directory: not a valid directory: evalsymlink failure on './customer/infra/operators' : lstat /customer: no such file or directory"

what fixed it for us

const command = `app diff ${app.metadata.name} --local-repo-root=${process.cwd()} --local=${app.spec.source.path}`;

--local-repo-root=${process.cwd()} 

pr: #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant