Skip to content

Commit 5d362d1

Browse files
committed
feat(cli): Updated docs
1 parent 96b39de commit 5d362d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The minor version will be incremented upon a breaking change and the patch versi
1212

1313
### Features
1414

15-
- cli: Added a `check_program_id_mismatch` in build time to check if the program ID in the source code matches the program ID in the keypair file ([#4018](https://github.com/solana-foundation/anchor/pull/4018))
15+
- cli: Added a `check_program_id_mismatch` in build time to check if the program ID in the source code matches the program ID in the keypair file ([#4018](https://github.com/solana-foundation/anchor/pull/4018)). This check will be skipped during `anchor test`.
1616

1717
### Fixes
1818

cli/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ pub fn build(
13331333
check_anchor_version(&cfg).ok();
13341334
check_deps(&cfg).ok();
13351335

1336-
// Check for program ID mismatches before building (skip if --ignore-keys is used)
1336+
// Check for program ID mismatches before building (skip if --ignore-keys is used), Always skipped in anchor test
13371337
if !ignore_keys {
13381338
check_program_id_mismatch(&cfg, program_name.clone())?;
13391339
}

0 commit comments

Comments
 (0)