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

1.6.0 #29

Merged
merged 2 commits into from
Jul 11, 2024
Merged

1.6.0 #29

merged 2 commits into from
Jul 11, 2024

Conversation

irgaly
Copy link
Owner

@irgaly irgaly commented Jul 11, 2024


@irgaly irgaly self-assigned this Jul 11, 2024
@irgaly irgaly merged commit ee664e5 into main Jul 11, 2024
@irgaly irgaly deleted the 1.6.0 branch July 11, 2024 15:40
@Wei18
Copy link

Wei18 commented Jul 12, 2024

Hi @irgaly,

I'm not sure what happened on v1.6.0, btw, log provided.

MISC: self-hosted runner on MacOS

##[debug]Failed to delete archive: Error: ENOENT: no such file or directory, unlink ''
execute: mint bootstrap -l -o y -v -m Mintfile
/Users/m1/.mint/bin/mint bootstrap -l -o y -v -m Mintfile
🌱 Found 7 packages in Mintfile
🌱 Mint 0.17.5 already installed
🌱 Linked mint 0.17.5 to /Users/m1/.mint/bin
🌱 /Users/m1/.mint/bin must be added to your $PATH if you wish to run this package outside of mint
🌱 XcodeGen 2.41.0 already installed
🌱 Linked xcodegen 2.41.0 to /Users/m1/.mint/bin
🌱 /Users/m1/.mint/bin must be added to your $PATH if you wish to run this package outside of mint
🌱 LicensePlist 3.25.1 already installed
🌱 Linked license-plist 3.25.1 to /Users/m1/.mint/bin
🌱 /Users/m1/.mint/bin must be added to your $PATH if you wish to run this package outside of mint
🌱 SwiftLint 0.52.4 already installed
🌱 Linked swiftlint 0.52.4 to /Users/m1/.mint/bin
🌱 /Users/m1/.mint/bin must be added to your $PATH if you wish to run this package outside of mint
🌱 SwiftFormat 0.54.0 already installed
🌱 Linked swiftformat 0.54.0 to /Users/m1/.mint/bin
🌱 /Users/m1/.mint/bin must be added to your $PATH if you wish to run this package outside of mint
🌱 xcbeautify 2.4.0 already installed
🌱 Linked xcbeautify 2.4.0 to /Users/m1/.mint/bin
🌱 /Users/m1/.mint/bin must be added to your $PATH if you wish to run this package outside of mint
🌱 GoSwifty 4262974b97cc29f79fc86ba4e45660059187a6c6 already installed
🌱 Linked GoSwifty 4262974b97cc29f79fc86ba4e45660059187a6c6 to /Users/m1/.mint/bin
🌱 /Users/m1/.mint/bin must be added to your $PATH if you wish to run this package outside of mint
🌱 7 packages up to date
Mintfile defined: yonaskolb/[email protected]
Mintfile defined: yonaskolb/[email protected]
Mintfile defined: mono0926/[email protected]
Mintfile defined: realm/[email protected]
Mintfile defined: nicklockwood/[email protected]
Mintfile defined: cpisciotta/[email protected]
Mintfile defined: rsrbk/GoSwifty@4262974b97cc29f79fc86ba4e45660059187a6c6
installed: SwiftGen/[email protected]
=> uninstall: SwiftGen/[email protected]
/Users/m1/.mint/bin/mint uninstall SwiftGen/[email protected]
<Buffer f0 9f 8c b1 20 20 49 6e 63 6f 6e 73 69 73 74 65 6e 74 20 63 61 63 68 65 2c 20 63 6c 65 61 72 20 69 74 20 75 70 2e 0a 45 72 72 6f 72 3a 20 49 6e 63 6f ... 117 more bytes>
🌱  Inconsistent cache, clear it up.
Error: Inconsistent metadata: git repository not found for package at path '/Users/m1/.mint/packages/github.com_yonaskolb_Mint'
Error: The process '/Users/m1/.mint/bin/mint' failed with exit code 1

@irgaly
Copy link
Owner Author

irgaly commented Jul 12, 2024

@Wei18

At first, setup-mint have a clean phase that it will uninstall packages that is not listed in Mintfile.
In your case, SwiftGen is installed your machine but it is not in Mintfile, then setup-mint will uninstall SwiftGen at clean phase.
You may set clean: false to setup-mint option to prevent this behavior.


##[debug]Failed to delete archive: Error: ENOENT: no such file or directory, unlink ''

This is GitHub Actions cache restoring warning, because cache path changed (~/bin/mint vs ~/.mint/bin/mint). This waring will disappear after new cache (~/.mint/bin/mint) has been stored.

Error: Inconsistent metadata: git repository not found for package at path '/Users/m1/.mint/packages/github.com_yonaskolb_Mint'

This error is from mint code, see below:

https://github.com/yonaskolb/Mint/blob/7b55208b2609e590303a3c498372b72b3b7b4c03/Sources/MintKit/Cache.swift#L52

This error means you have /Users/m1/.mint/packages/github.com_yonaskolb_Mint package directory, but github.com_yonaskolb_Mint is missing in your Mint database json ~/.mint/metadata.json.

setup-mint use GitHub Actions cache to restore ~/.mint directory. This may break your mint packages or metadata, if you use your self-hosted macOS machine as your usually local machine at your daily work.

You can stop caching ~/.mint directory with use-cache: false to setup-mint option.

@Wei18
Copy link

Wei18 commented Jul 12, 2024

@irgaly

Thanks for the step by step explanation.
I have deleted the ~/.mint directory. Now the self-hosted macOS machine if worked.

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

Successfully merging this pull request may close these issues.

2 participants