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

Build Error on Linux #104

Closed
0xTim opened this issue Aug 7, 2024 · 4 comments
Closed

Build Error on Linux #104

0xTim opened this issue Aug 7, 2024 · 4 comments

Comments

@0xTim
Copy link
Contributor

0xTim commented Aug 7, 2024

When running a build on a Linux (Swift 5.10.1) it fails because Ignite is using URL functions that are not currently available on Linux. E.g.

/home/runner/work/iOSDevHappyHourSite/iOSDevHappyHourSite/.build/checkouts/Ignite/Sources/Ignite/Publishing/PublishingContext.swift:376:21: error: cannot infer contextual base in reference to member 'reverse'
            order: .reverse
                   ~^~~~~~~
/home/runner/work/iOSDevHappyHourSite/iOSDevHappyHourSite/.build/checkouts/Ignite/Sources/Ignite/Publishing/PublishingContext.swift:383:49: error: value of type 'URL' has no member 'appending'
            let destinationURL = buildDirectory.appending(path: site.feedConfiguration.path)
                                 ~~~~~~~~~~~~~~ ^~~~~~~~~
/home/runner/work/iOSDevHappyHourSite/iOSDevHappyHourSite/.build/checkouts/Ignite/Sources/Ignite/Publishing/PublishingContext.swift:384:79: error: cannot infer contextual base in reference to member 'utf8'
            try result.write(to: destinationURL, atomically: true, encoding: .utf8)
                                                                             ~^~~~
/home/runner/work/iOSDevHappyHourSite/iOSDevHappyHourSite/.build/checkouts/Ignite/Sources/Ignite/Publishing/PublishingContext.swift:396:49: error: value of type 'URL' has no member 'appending'
            let destinationURL = buildDirectory.appending(path: "robots.txt")
                                 ~~~~~~~~~~~~~~ ^~~~~~~~~
/home/runner/work/iOSDevHappyHourSite/iOSDevHappyHourSite/.build/checkouts/Ignite/Sources/Ignite/Publishing/PublishingContext.swift:413:51: error: value of type 'URL' has no member 'appending'
        let destinationDirectory = buildDirectory.appending(path: destination)
                                   ~~~~~~~~~~~~~~ ^~~~~~~~~
/home/runner/work/iOSDevHappyHourSite/iOSDevHappyHourSite/.build/checkouts/Ignite/Sources/Ignite/Publishing/PublishingContext.swift:431:49: error: value of type 'URL' has no member 'appending'
            let destinationURL = buildDirectory.appending(path: "js/syntax-highlighting.js")
                                 ~~~~~~~~~~~~~~ ^~~~~~~~~

This is more for tracking and notifying as this should be fixed in Swift 6 (which will require #81 to be solved)

@twostraws
Copy link
Owner

Hello! Yes, I talked to one of the team at the Swift anniversary thing during WWDC, because I was confused and considering going back to the older APIs! I'm looking forward to this one being resolved.

@Haibo-Zhou
Copy link

Hello! Yes, I talked to one of the team at the Swift anniversary thing during WWDC, because I was confused and considering going back to the older APIs! I'm looking forward to this one being resolved.

Thanks from Twitter :)

@jpurnell
Copy link
Contributor

Has anyone seen this "fix itself" with a Swift 6 toolchain on Linux yet?

@0xTim
Copy link
Contributor Author

0xTim commented Sep 19, 2024

@jpurnell yes this builds fine on Linux with Swift 6

@0xTim 0xTim closed this as completed Sep 19, 2024
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

4 participants