Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2c917f

Browse files
codexByron
andcommitted
Make package.include patterns more specific so they don't match ignored files
Related to rust-lang/cargo#16872 (comment) ---- > Make all package manifest include patterns so that they are anchored to their crate, see https:// github.com/rust-lang/cargo/issues/16872#issuecomment-4246667678. This should be done for all workspace package manifests. › Using `stg pop` and `stg push`, pop off the current commit, use `cargo package --list` on the crate under test to get the current list, and then run it again after `stg push` to validate it's the same as before after the include changes. Maybe write a script for that just for a one-time verification. You could record the baseline for all crates, and then run a test against that baseline after `stg push`. Lastly, feel free to dump temporary files in this repository, but delete them when done and if the baseline matches. Co-authored-by: Sebastian Thiel <[email protected]>
1 parent 33c0a8b commit c2c917f

55 files changed

Lines changed: 55 additions & 56 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
1010
version = "0.52.0"
1111
rust-version = "1.82"
1212
default-run = "gix"
13-
include = ["src/**/*", "/build.rs", "LICENSE-*", "README.md"]
13+
include = ["/src/**/*", "/build.rs", "/LICENSE-*", "/README.md"]
1414
resolver = "2"
1515

1616
[[bin]]

gix-actor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["Sebastian Thiel <[email protected]>"]
88
repository = "https://github.com/GitoxideLabs/gitoxide"
99
license = "MIT OR Apache-2.0"
1010
edition = "2021"
11-
include = ["src/**/*", "LICENSE-*"]
11+
include = ["/src/**/*", "/LICENSE-*"]
1212
rust-version = "1.82"
1313

1414
[lib]

gix-archive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "archive generation from of a worktree stream"
99
authors = ["Sebastian Thiel <[email protected]>"]
1010
edition = "2021"
1111
rust-version = "1.82"
12-
include = ["src/**/*", "LICENSE-*"]
12+
include = ["/src/**/*", "/LICENSE-*"]
1313

1414
[lib]
1515
doctest = false

gix-attributes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
88
description = "A crate of the gitoxide project dealing .gitattributes files"
99
authors = ["Sebastian Thiel <[email protected]>"]
1010
edition = "2021"
11-
include = ["src/**/*", "LICENSE-*"]
11+
include = ["/src/**/*", "/LICENSE-*"]
1212
rust-version = "1.82"
1313

1414
[lib]

gix-chunk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/GitoxideLabs/gitoxide"
99
documentation = "https://github.com/git/git/blob/seen/Documentation/technical/chunk-format.txt"
1010
license = "MIT OR Apache-2.0"
1111
edition = "2021"
12-
include = ["src/**/*", "LICENSE-*"]
12+
include = ["/src/**/*", "/LICENSE-*"]
1313
rust-version = "1.82"
1414

1515
[lib]

gix-command/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "A crate of the gitoxide project handling internal git command exe
99
authors = ["Sebastian Thiel <[email protected]>"]
1010
edition = "2021"
1111
rust-version = "1.82"
12-
include = ["src/lib.rs", "LICENSE-*"]
12+
include = ["/src/lib.rs", "/LICENSE-*"]
1313

1414
[lib]
1515
doctest = true

gix-commitgraph/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
99
description = "Read-only access to the git commitgraph file format"
1010
authors = ["Conor Davis <[email protected]>", "Sebastian Thiel <[email protected]>"]
1111
edition = "2021"
12-
include = ["src/**/*", "LICENSE-*"]
12+
include = ["/src/**/*", "/LICENSE-*"]
1313
rust-version = "1.82"
1414

1515
[lib]

gix-config-value/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "A crate of the gitoxide project providing git-config value parsin
99
authors = ["Sebastian Thiel <[email protected]>"]
1010
edition = "2021"
1111
rust-version = "1.82"
12-
include = ["src/**/*", "LICENSE-*"]
12+
include = ["/src/**/*", "/LICENSE-*"]
1313

1414
[lib]
1515
doctest = true

gix-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = ["Edward Shen <[email protected]>"]
1010
edition = "2021"
1111
keywords = ["git-config", "git", "config", "gitoxide"]
1212
categories = ["config", "parser-implementations"]
13-
include = ["src/**/*", "LICENSE-*", "README.md"]
13+
include = ["/src/**/*", "/LICENSE-*", "/README.md"]
1414
rust-version = "1.82"
1515
autotests = false
1616

gix-credentials/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "A crate of the gitoxide project to interact with git credentials
99
authors = ["Sebastian Thiel <[email protected]>"]
1010
edition = "2021"
1111
rust-version = "1.82"
12-
include = ["src/**/*", "LICENSE-*"]
12+
include = ["/src/**/*", "/LICENSE-*"]
1313

1414
[lib]
1515
doctest = false

0 commit comments

Comments
 (0)