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

DangerSwiftPeriphery.CommandError #61

Open
rarias84 opened this issue Jan 31, 2023 · 6 comments
Open

DangerSwiftPeriphery.CommandError #61

rarias84 opened this issue Jan 31, 2023 · 6 comments

Comments

@rarias84
Copy link

When I run DangerPeriphery.scan with any config I received this "The operation couldn’t be completed. (DangerSwiftPeriphery.CommandError error 1.)" in local and CI

@taji-taji
Copy link
Owner

@rarias84 Thank you for raising this issue!
Can you output debugging information in the manner described here and share the contents with me?

@rarias84
Copy link
Author

rarias84 commented Feb 6, 2023

failure(DangerSwiftPeriphery.CommandError.standard(exitCode: 1, description: "error: Could not find Package.swift in this directory or any of its parent directories.")) , but Im in the same level as Package.swift

@taji-taji
Copy link
Owner

@rarias84
Sorry for the late reply.
Is it possible for you to provide a directory structure to create a reproducible environment?

@rarias84
Copy link
Author

I have something like this
app/
app.xcworkspace
DevelopmentPods/
Packages/Danger/Package.swift
Packages/Danger/.periphery.yml

@Kalisnoir
Copy link

Any update on this @taji-taji @rarias84? I have a similar setup where I get the same issue, however if I try to run the exact same output manually in the terminal it runs fine

via danger ran locally with Periphery verbose: true

swift run danger-swift pr redacted --cwd ..

[2023-05-23 12:03:20 +0000] Sources/DangerSwiftPeriphery/ShellExecutor.swift:execute(_:arguments:)#23: command started: swift run periphery scan --workspace ../redacted.xcworkspace --targets redacted --schemes redacted --report-exclude ../redacted/Resources/Generated/Assets.swift --report-exclude ../redacted/Resources/Generated/ProductTestSetup.swift --report-exclude ../redacted/Sources/redacted/Strings.swift --report-exclude ../redacted/Sources/redacted/AccessibilityIdentifiers/AccessibilityIdentifiers.swift --retain-objc-accessible --retain-public --skip-build --format checkstyle --quiet --disable-update-check

Danger: ⅹ Failing the build, there is 1 fail.
## Failures
The operation couldn’t be completed. (DangerSwiftPeriphery.CommandError error 1.)

if I run the exact same periphery command directly in the terminal then it runs perfectly.

@willnix86
Copy link

Seeing this issue too. Any updates?

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

4 participants