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

Add command to update SwiftFormat reference to latest version #274

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

calda
Copy link
Member

@calda calda commented Jun 11, 2024

This PR adds a bundle exec rake update:swiftformat command that updates the SwiftFormat dependency Package.swift to reference the most recent version published in the https://github.com/calda/SwiftFormat repo.

This combines nicely with nicklockwood/SwiftFormat#1721, which automates the creation of the artifact bundle.

If you run this right now, the command applies this change to the Package.swift file:

diff --git a/Package.swift b/Package.swift
index 579c10c..7b2daee 100644
--- a/Package.swift
+++ b/Package.swift
@@ -42,8 +42,8 @@ let package = Package(
 
     .binaryTarget(
       name: "SwiftFormat",
-      url: "https://github.com/calda/SwiftFormat/releases/download/0.54-beta-7/SwiftFormat.artifactbundle.zip",
-      checksum: "0cf117050e7838f545009bfe4a75dbda98cff737cb847a7d065a89683e9e890a"),
+      url: "https://github.com/calda/SwiftFormat/releases/download/0.54-test-upload-release-artifact-3/SwiftFormat.artifactbundle.zip",
+      checksum: "45eb713635edde284f06c2aa0c556f25336cbb382ae0e2226553abf468092e63"),
 
     .binaryTarget(
       name: "SwiftLintBinary",

@calda calda force-pushed the cal--update-swiftformat-command branch from 3d24eb4 to a3c00fa Compare June 11, 2024 17:58
@calda calda force-pushed the cal--update-swiftformat-command branch from a3c00fa to 7759726 Compare June 11, 2024 18:00
@calda calda merged commit 7cf38c5 into master Jun 11, 2024
5 checks passed
@calda calda deleted the cal--update-swiftformat-command branch June 11, 2024 18:02
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