-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Upgrade Solana to 1.16.0 #2512
Merged
acheroncrypto
merged 15 commits into
coral-xyz:master
from
acheroncrypto:upgrade-solana-to-v1.16.0
Jun 4, 2023
Merged
Upgrade Solana to 1.16.0 #2512
acheroncrypto
merged 15 commits into
coral-xyz:master
from
acheroncrypto:upgrade-solana-to-v1.16.0
Jun 4, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel. A member of the Team first needs to authorize it. |
Use workspace `anchor-lang` instead of last release in `anchor-idl-account` tests
The program doesn't work properly with solana `1.16.0`. Built the program with Solana `1.14.18` and added it's binary as a dependency to fix CI.
Same with `openbook-dex`, the program doesn't work properly with Solana `1.16.0`. Built the program with Solana `1.14.18` and added its binary as a dependency to fix CI.
Disabling this test until `0.28.0` is out because it will only be fixed with a new release.
vadorovsky
added a commit
to Lightprotocol/light-merkle-tree
that referenced
this pull request
Jun 6, 2023
The newest solana-program crate was pulled unintentionally anyway which resulted in unexpected errors due to incompatibility of dependencies. More context: coral-xyz/anchor#2512
vadorovsky
added a commit
to Lightprotocol/light-protocol
that referenced
this pull request
Jun 6, 2023
The newest solana-program crate was pulled unintentionally anyway which resulted in unexpected errors due to incompatibility of dependencies. More context: coral-xyz/anchor#2512
ananas-block
pushed a commit
to Lightprotocol/light-merkle-tree
that referenced
this pull request
Jun 6, 2023
#6) * Update Solana SDK to 1.16 and Anchor to the latest change including it The newest solana-program crate was pulled unintentionally anyway which resulted in unexpected errors due to incompatibility of dependencies. More context: coral-xyz/anchor#2512 * Add CI tests
vadorovsky
added a commit
to Lightprotocol/light-protocol
that referenced
this pull request
Jun 6, 2023
The newest solana-program crate was pulled unintentionally anyway which resulted in unexpected errors due to incompatibility of dependencies. More context: coral-xyz/anchor#2512
vadorovsky
added a commit
to Lightprotocol/light-protocol
that referenced
this pull request
Jun 6, 2023
The newest solana-program crate was pulled unintentionally anyway which resulted in unexpected errors due to incompatibility of dependencies. More context: coral-xyz/anchor#2512
vadorovsky
added a commit
to Lightprotocol/light-protocol
that referenced
this pull request
Jun 6, 2023
The newest solana-program crate was pulled unintentionally anyway which resulted in unexpected errors due to incompatibility of dependencies. More context: coral-xyz/anchor#2512
ananas-block
pushed a commit
to Lightprotocol/light-protocol
that referenced
this pull request
Jun 6, 2023
#142) The newest solana-program crate was pulled unintentionally anyway which resulted in unexpected errors due to incompatibility of dependencies. More context: coral-xyz/anchor#2512
Aursen
added a commit
to Aursen/anchor
that referenced
this pull request
Jun 10, 2023
commit e1afcbf Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Fri Jun 9 18:00:35 2023 +0200 v0.28.0 (coral-xyz#2527) commit c7c7319 Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Thu Jun 8 18:59:44 2023 +0200 Allow wider range of dependency versions to reduce dependency issues (coral-xyz#2524) commit 6df34e7 Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Wed Jun 7 19:12:56 2023 +0200 Update crate authors and remove outdated registry (coral-xyz#2522) commit 1705d16 Author: Jean Marchand (Exotic Markets) <jeanno11@orange.fr> Date: Wed Jun 7 16:29:23 2023 +0200 docs: Add doc for InitSpace macro (coral-xyz#2521) commit 3d7c97b Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Tue Jun 6 19:28:24 2023 +0200 cli: Accept program lib name for `anchor deploy --program-name` (coral-xyz#2519) commit a88be42 Author: Sergo <rogaldh@radsh.red> Date: Tue Jun 6 14:07:33 2023 +0300 ts: Validate `error.data` exists on simulation response (coral-xyz#2508) commit 65c9d6e Author: Jean Marchand (Exotic Markets) <jeanno11@orange.fr> Date: Tue Jun 6 09:43:46 2023 +0200 client: Add async to anchor-client (coral-xyz#2488) Co-authored-by: acheron <acheroncrypto@gmail.com> commit b8eda69 Author: Deep Mehta <65382963+0xdeepmehta@users.noreply.github.com> Date: Mon Jun 5 22:35:24 2023 +0530 cli: Print not found message if the given program cannot be found during deployment (coral-xyz#2517) commit 1902b8e Author: CanardMandarin <thibault.marboud@gmail.com> Date: Mon Jun 5 14:16:10 2023 +0200 cli: Update programs in `Anchor.toml` when using `anchor new` (coral-xyz#2516) commit 383e440 Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sun Jun 4 21:02:16 2023 +0200 cli: Initialize with the correct program id (coral-xyz#2509) commit 835dc5b Author: Sarfaraz Nawaz <sir_nawaz959@yahoo.com> Date: Sun Jun 4 23:20:03 2023 +0530 lang: Rename derive_anchor_deserialize -> derive_init_space (coral-xyz#2510) commit 1c6f86e Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sun Jun 4 13:09:39 2023 +0200 Upgrade Solana to 1.16.0 (coral-xyz#2512) commit 2bf8afe Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Tue May 30 19:50:45 2023 +0200 cli: Use `confirmed` commitment level in commands (coral-xyz#2506) commit 70d9223 Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sun May 28 22:34:53 2023 +0200 cli: Add `anchor keys sync` command (coral-xyz#2505) commit 0c8498d Author: cavemanloverboy <93507302+cavemanloverboy@users.noreply.github.com> Date: Sat May 27 06:53:02 2023 -0700 cli: Exit `anchor clean` without error when dirs don't exist (coral-xyz#2504) commit 23b90bf Author: Noah Gundotra <ngundotra@users.noreply.github.com> Date: Fri May 26 12:36:46 2023 -0400 Feature: CPI Events API (coral-xyz#2438) Co-authored-by: acheron <acheroncrypto@gmail.com> commit c3625c8 Author: Last Emperor <46998219+lastemp@users.noreply.github.com> Date: Wed May 24 15:05:47 2023 +0300 examples: Add an example with `instruction` method (coral-xyz#2501) Co-authored-by: acheron <acheroncrypto@gmail.com> commit 67eb752 Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sat May 20 20:34:38 2023 +0200 tests: Fix zero-copy tests (coral-xyz#2498) commit f9d0eca Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Fri May 19 13:18:14 2023 +0200 spl: Update `spl-token-2022` to 0.6.1 (coral-xyz#2496) commit 4793b90 Author: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Fri May 19 10:58:16 2023 +0200 Fix `toml_datetime` 1.64.0 MSRV error (coral-xyz#2495) commit 41a4d82 Author: chalda <chalda@seznam.cz> Date: Thu May 18 19:12:25 2023 +0200 cli: Add print base64 instruction option for some of the IDL commands (coral-xyz#2486) Co-authored-by: acheron <acheroncrypto@gmail.com> commit b7bada1 Author: Pierre <Arrowana@users.noreply.github.com> Date: Tue May 16 23:46:40 2023 +1000 fix: remove skip preflight from cli (coral-xyz#2492) --------- Co-authored-by: acheron <acheroncrypto@gmail.com> commit 89e94d1 Author: Ryan De La O <rdelao@users.noreply.github.com> Date: Sat May 13 02:17:47 2023 -0700 cli: Fix incorrect metadata.address generation (coral-xyz#2485) Currently when running 'anchor deploy --program-name <name> --program-keypair <specified keypair>' the cli still uses the auto-generated keypair when fetching the program id to add to the IDL metadata at the end. It should instead use the address from the specified keypair. --------- Co-authored-by: acheron <acheroncrypto@gmail.com> commit 714d524 Author: CanardMandarin <thibault.marboud@gmail.com> Date: Tue May 9 16:17:11 2023 +0200 lang: Add error message when Mint and TokenAccount with `init` are not ordered correctly (coral-xyz#2484) commit 9a93a2e Author: James <juicy66173@gmail.com> Date: Mon May 8 10:17:51 2023 +0100 ts: Improve IDL typing (coral-xyz#2482) * Use XOR pattern for enum variants to prevent two variants being used at the same time. * Fix unknown for types like Option<[u8; 32]> commit d1ddf00 Author: CanardMandarin <thibault.marboud@gmail.com> Date: Sun May 7 11:03:37 2023 +0200 lang: Fix incorrectly checking the first init constraint (coral-xyz#2483)
vadorovsky
pushed a commit
to Lightprotocol/anchor
that referenced
this pull request
Jun 20, 2023
ananas-block
pushed a commit
to Lightprotocol/anchor
that referenced
this pull request
Jun 20, 2023
vadorovsky
added a commit
to vadorovsky/light-protocol
that referenced
this pull request
May 1, 2024
Lightprotocol#142) The newest solana-program crate was pulled unintentionally anyway which resulted in unexpected errors due to incompatibility of dependencies. More context: coral-xyz/anchor#2512
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Initializing a new Anchor project currently installs Solana crates with version
1.16.0
. This is happening becauseanchor-lang
specifiessolana-program
to1.14.16
andcargo
expects any new version<2.0.0
to be compatible(they are not). New releases of other crates should not break Anchor.Adding a maximum allowed version allows anyone to override the default versions and install an older versions if they prefer. It also solves the problem for new programs(without a lock file) to install incompatible versions by default. This should greatly reduce the amount of dependency issues due to breaking changes in minor releases.
Changes:
<1.17.0
.solana-client
locks thetokio
version to~1.14.1
butanchor-cli
currently specifies1.24
which are incompatible. Downgradetokio
version to Use the same version assolana-client
(chore: bump tokio version solana-labs/solana#29586, RPC server not responsive possible regression in 1.9.16 solana-labs/solana#24644).<0.11.0
forborsh
to be compatible withsolana-program
.winnow
andtoml_datetime
dependencies fromanchor-spl
sincerustc
version is now updated with the last Solana release(Use fixed version forwinnow
crate to fix new builds #2478, Fixtoml_datetime
1.64.0 MSRV error #2495).getrandom = { version = "0.2", features = ["custom"] }
inanchor-lang
otherwise it doesn't build.openbook-dex
program with Solana1.14.18
for theswap
tests and switch back to original Solana CLI version to test theswap
program.openbook-dex
program does not work with Solana1.16.0
and throwsInvoked an instruction with data that is too large
error.token-metadata
program binary(built with Solana1.14.18
) for theauction-house
tests. Theauction-house
program is tested with Solana1.14.18
because it does not work with Solana1.16.0
and throwsInvoked an instruction with data that is too large
error.anchor init
test in CI because it won't work until the next release(0.28.0
).