Open stherold opened 1 year ago
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"
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?
Any updates to this @mono0926 ?
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
andCarthage.resolved
files? When the< are not specified the standard paths are assumed. That would help a lot :)