solana-course icon indicating copy to clipboard operation
solana-course copied to clipboard

Anchor needs significant work to function out of the box

Open mikemaccana opened this issue 1 year ago • 2 comments

Anchor 0.30 may fix this but 0.29 won't work without a huge amount of effort from students. See

https://twitter.com/mikemaccana/status/1773734187628970175?s=61&t=VoWyNSycDw9wQ1mH7Otbng

Not sure if we fix the course to include this as a section or wait for Anchor to fix itself but my gut is the former. We can just delete the section once Anchor is fixed.

mikemaccana avatar Apr 03 '24 21:04 mikemaccana

OK out of 6 issues, 5 are sorted, one is on the way:

  • ✅ proc_macro_span_shrink - fixed in Anchor 0.30 & Solana 1.18
  • 🔜 package solana-program v1.18.11 cannot be built because it requires rustc 1.75.0 or newer. The cause of this is solana-program crate not using semver, I spoke to Jacob Creech about this, the solana-program crate will be split out from the monorepo and will move to semver in the next month or two.
  • ✅ ahash cannot be built - fixed in Anchor 0.30 & Solana 1.18
  • ✅🔜 No license field warning - fixed in Anchor next release, see https://github.com/coral-xyz/anchor/pull/2929
  • ✅🔜 Unable to read keypair file (no file mentioned) - fixed in Anchor next release, see https://github.com/coral-xyz/anchor/pull/2932
  • ✅ virtual workspace warning - fixed in Anchor 0.30 & Solana 1.18

mikemaccana avatar May 06 '24 16:05 mikemaccana

Will actually leave open as we still need to have some fixes for the unreleased bits.

mikemaccana avatar May 06 '24 16:05 mikemaccana

https://www.anchor-lang.com/release-notes/0.30.1 released with all the ✅🔜 fixes above.

mikemaccana avatar Aug 09 '24 21:08 mikemaccana