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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carthage & SPM Lockfiles not found with Tuist #220

Open
stherold opened this issue Sep 11, 2023 · 3 comments
Open

Carthage & SPM Lockfiles not found with Tuist #220

stherold opened this issue Sep 11, 2023 · 3 comments

Comments

@stherold
Copy link

Hey hey 馃憢

as we use Tuist they put the lock files in different directories as you can see below. Therefore the collection of licenses for Carthage and SPM does not work anymore.

Can you add optional parameters to the command for the Package.resolved and Carthage.resolved files? When the< are not specified the standard paths are assumed. That would help a lot :)

@stherold
Copy link
Author

stherold commented Oct 6, 2023

Actually we found a way of how it works. By specifying --cartfile-path and --package-path like below, all is fine:

 LicensePlist license-plist --output-path "$tmpDir" \
                            --suppress-opening-directory \
                            --github-token "${GITHUB_ACCESS_TOKEN}" \
                            --add-version-numbers \
                            --cartfile-path "./Tuist/Dependencies/Lockfiles/Cartfile" \
                            --mintfile-path "./Mintfile" \
                            --package-path "./Tuist/Dependencies/Lockfiles/Package.resolved" \
                            --xcworkspace-path "MyProject.xcworkspace"

@hassan-ioki
Copy link

For SPM, when I look more into this the inline method works like so: --package-path "..../Dependencies/Lockfiles/Package.resolved" But if I use the same line in my config file as: packagePath: "..../Dependencies/Lockfiles/Package.resolved", it doesn't work. It results in the warning Not found: Package.resolved and Not found: Package.swift. I tried with other config variables like packagePaths but doesn't seem to correspond. What is the variable name in the config? Can you help?

@hassan-ioki
Copy link

Any updates to this @mono0926 ?

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

2 participants