Skip to content

Commit 17b4cc0

Browse files
examples: Use path dep for all examples (otter-sec#122)
1 parent a9f4974 commit 17b4cc0

15 files changed

Lines changed: 20 additions & 19 deletions

File tree

examples/cashiers-check/programs/cashiers-check/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ cpi = ["no-entrypoint"]
1515
default = []
1616

1717
[dependencies]
18-
anchor-lang = { git = "https://github.com/project-serum/anchor" }
19-
anchor-spl = { git = "https://github.com/project-serum/anchor" }
18+
anchor-lang = { path = "../../../../lang" }
19+
anchor-spl = { path = "../../../../spl" }

examples/errors/programs/errors/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ no-entrypoint = []
1313
cpi = ["no-entrypoint"]
1414

1515
[dependencies]
16-
anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }
16+
anchor-lang = { path = "../../../../lang" }

examples/interface/programs/counter-auth/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ cpi = ["no-entrypoint"]
1515
default = []
1616

1717
[dependencies]
18-
anchor-lang = { git = "https://github.com/project-serum/anchor" }
18+
anchor-lang = { path = "../../../../lang" }
1919
counter = { path = "../counter", features = ["cpi"] }

examples/interface/programs/counter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cpi = ["no-entrypoint"]
1515
default = []
1616

1717
[dependencies]
18-
anchor-lang = { git = "https://github.com/project-serum/anchor" }
18+
anchor-lang = { path = "../../../../lang" }

examples/lockup/programs/lockup/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ no-entrypoint = []
1313
cpi = ["no-entrypoint"]
1414

1515
[dependencies]
16-
anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }
17-
anchor-spl = { git = "https://github.com/project-serum/anchor" }
16+
anchor-lang = { path = "../../../../lang" }
17+
anchor-spl = { path = "../../../../spl" }

examples/lockup/programs/registry/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ no-entrypoint = []
1313
cpi = ["no-entrypoint"]
1414

1515
[dependencies]
16-
anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }
17-
anchor-spl = { git = "https://github.com/project-serum/anchor" }
16+
anchor-lang = { path = "../../../../lang" }
17+
anchor-spl = { path = "../../../../spl" }
1818
lockup = { path = "../lockup", features = ["cpi"] }

examples/misc/programs/misc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cpi = ["no-entrypoint"]
1515
default = []
1616

1717
[dependencies]
18-
anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }
18+
anchor-lang = { path = "../../../../lang" }

examples/multisig/programs/multisig/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cpi = ["no-entrypoint"]
1515
default = []
1616

1717
[dependencies]
18-
anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }
18+
anchor-lang = { path = "../../../../lang" }

examples/spl/token-proxy/programs/token-proxy/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ no-entrypoint = []
1313
cpi = ["no-entrypoint"]
1414

1515
[dependencies]
16-
anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }
17-
anchor-spl = { git = "https://github.com/project-serum/anchor" }
16+
anchor-lang = { path = "../../../../../lang" }
17+
anchor-spl = { path = "../../../../../spl" }

examples/sysvars/programs/sysvars/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ no-entrypoint = []
1313
cpi = ["no-entrypoint"]
1414

1515
[dependencies]
16-
anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }
16+
anchor-lang = { path = "../../../../lang" }
17+
anchor-spl = { path = "../../../../spl" }

0 commit comments

Comments
 (0)