Skip to content

Commit be3c8ef

Browse files
committed
tests: Use workspace deps for anchor in test programs
1 parent cac791e commit be3c8ef

14 files changed

Lines changed: 85 additions & 276 deletions

File tree

lints/arbitrary_cpi_call/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
12+
anchor-lang = { workspace = true }
13+
anchor-spl = { workspace = true }

lints/ata_should_use_init_if_needed/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor", rev = "939b843", features = ["init-if-needed"] }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
12+
anchor-lang = { workspace = true, features = ["init-if-needed"] }
13+
anchor-spl = { workspace = true }
1414

lints/cpi_no_result/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
12+
anchor-lang = { workspace = true }
13+
anchor-spl = { workspace = true }
1414

lints/direct_lamport_cpi_dos/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
12+
anchor-lang = { workspace = true }
13+
anchor-spl = { workspace = true }
1414

lints/duplicate_mutable_accounts/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
12+
anchor-lang = { workspace = true }
13+
anchor-spl = { workspace = true }

lints/missing_account_field_init/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor.git", branch = "anchor-lint" }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor.git", branch = "anchor-lint" }
12+
anchor-lang = { workspace = true }
13+
anchor-spl = { workspace = true }
1414

1515

lints/missing_account_reload/tests/test_program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
12+
anchor-lang = { workspace = true }

lints/missing_mut_constraint/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor.git", branch = "anchor-lint" }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor.git", branch = "anchor-lint" }
12+
anchor-lang = { workspace = true }
13+
anchor-spl = { workspace = true }

lints/missing_owner_check/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
12+
anchor-lang = { workspace = true }
13+
anchor-spl = { workspace = true }
1414
mpl-token-metadata = "5.1.2-alpha.1"

lints/missing_signer_validation/tests/test_program/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ workspace = "../../../../tests"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
anchor-lang = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
13-
anchor-spl = { git = "https://github.com/jamie-osec/anchor", rev = "939b843" }
12+
anchor-lang = { workspace = true }
13+
anchor-spl = { workspace = true }
1414

0 commit comments

Comments
 (0)