I want to downgrade the swiftlint version on my MBP M1 Pro.
I installed it using brew install swiftlint
In homebrew/Cellar/swiftlint
the folder is 0.49.1
which I guess is the version installed on my machine.
I googled and tried a few methods. But non of them worked for me.
First:
brew install <url of older github raw file>
is not working
Second:
brew install swiftlint@0.47.0
was also not working
Third:
- I downloaded portable_zip of
0.47.0
form github, extracted and created a new folderhomebrew/Cellar/swiftlint/0.47.0
and pasted the content there. After double clicking on the executable file swiftlint starts running. - Then ran
brew switch swiftlint 0.47.0
but it was also not working - I also tried deleting the alias from
homebrew/bin/swiftlint
and pasted new alias fromhomebrew/Cellar/swiftlint/0.47.0
folder's executable there, but it was also not working.
Can anyone help me out what I am doing wrong, and what should be the correct steps.
I am new to macOS.