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

0.29.0 SHASUM #1286

Closed
alexandrethsilva opened this issue Jul 2, 2020 · 6 comments
Closed

0.29.0 SHASUM #1286

alexandrethsilva opened this issue Jul 2, 2020 · 6 comments
Labels
build-issue Issues occurring when attempting to build
Milestone

Comments

@alexandrethsilva
Copy link

Hi @designatednerd, here's more details on the issue I mentioned before on #1231.

After upgrading from 0.27.1 to 0.29.0, I am unable to successfully run the Swift scripting to either download or generate a schema, as it fails the checksum.

The output message I'm getting seems related to a number of similar previous reports on #1231, #1265, #1285, #1177 and #1192.

The log output

ApolloCodegenLib:CLIDownloader.swift:43] - Zip file with the CLI is already downloaded!
[DEBUG - ApolloCodegenLib:CLIExtractor.swift:39] - Apollo folder doesn't exist, extracting CLI from zip file.
SHASUM: 08c45258b7cc1d4e6e28288930428922fd7dee9ccaad6e5be17dd5b79e6b1af4
Failed to Generate the Code
Program ended with exit code: 1

Even though I believe the problem is most likely related to caching, as this comment on #1192 seems to confirm, I am still unable to successfully use the script even after cleaning the build folder and deleting the derived data, so I'm not sure what else to do.

The problem occurs on both Xcode 11.4 (11E146) and 12.0 beta (12A6159). Even though I imagine only 11.4 (11E146) is actually considered for support, I need to run the build against the beta as well to verify things are still working on iOS 14, so it may be worth mentioning.

Also, thanks for the time you invest in supporting the community with this project! If you need more details, let me know.

@designatednerd
Copy link
Contributor

This appears to be related to #1284 - working on additional commits to that to make sure it works well

@designatednerd designatednerd added the build-issue Issues occurring when attempting to build label Jul 2, 2020
@designatednerd designatednerd added this to the Next Release milestone Jul 2, 2020
@designatednerd
Copy link
Contributor

Fix for this issue has gone out with 0.29.1 - the problem wasn't that the CLI is wrong, it's that linter failures were silent and that the CLI's SHASUM was the last thing that got printed out before that failure occurred.

I'm gonna close this one out, if you continue to have problems with the new version, please file a new issue. Thank you!

@alexandrethsilva
Copy link
Author

Thanks! I'll try it out and follow up in case problems still arise.

@amadeu01
Copy link

amadeu01 commented Jul 7, 2020

@designatednerd I'm facing the same problem with 0.29.1

@alexandrethsilva
Copy link
Author

@amadeu01 since my 0.29.1 update things have been running smoothly on my side. Did you try resetting the package caches and deleting the derived data to make sure it's not related to Xcode's cache?

To delete the package caches, go to File > Swift Packages > Reset Package Caches. Of course, that only applies if you're using the Swift Package. For Cocoapods you can remove the Pods folder and the Pods.lock before re-running pod install as well.

I never used Carthage, so I wouldn't know what to suggest for that case.

@amadeu01
Copy link

amadeu01 commented Jul 7, 2020

I did rm -rf Carthage/Checkouts/apollo-ios/scripts/apollo and then attempt to run again. It worked thanks @alexandrethsilva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-issue Issues occurring when attempting to build
Projects
None yet
Development

No branches or pull requests

3 participants