dockerfile-analyzer 0.4.2__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/.github/workflows/CI.yml +3 -3
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/Cargo.lock +13 -13
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/Cargo.toml +2 -2
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/PKG-INFO +1 -1
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/src/models.rs +6 -6
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/.cargo/config.toml +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/.github/dependabot.yml +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/.gitignore +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/LICENSE +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/README.md +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/dockerfile_analyzer.pyi +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/example.py +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/py.typed +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/pyproject.toml +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/requirements-dev.txt +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/src/analyzer.rs +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/src/constants.rs +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/src/lib.rs +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/src/parse_utils.rs +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/tests/fixtures/multistage.Dockerfile +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/tests/test_analyze_dockerfile.py +0 -0
- {dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/tests/test_stages.py +0 -0
|
@@ -35,7 +35,7 @@ jobs:
|
|
|
35
35
|
# A commit pin does not get the branch-name default of stable.
|
|
36
36
|
toolchain: stable
|
|
37
37
|
components: rustfmt, clippy
|
|
38
|
-
- uses: Swatinem/rust-cache@
|
|
38
|
+
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
39
39
|
- name: Check formatting
|
|
40
40
|
run: cargo fmt --all -- --check
|
|
41
41
|
- name: Clippy
|
|
@@ -58,7 +58,7 @@ jobs:
|
|
|
58
58
|
with:
|
|
59
59
|
# A commit pin does not get the branch-name default of stable.
|
|
60
60
|
toolchain: stable
|
|
61
|
-
- uses: Swatinem/rust-cache@
|
|
61
|
+
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
62
62
|
- name: Run tests
|
|
63
63
|
run: cargo test
|
|
64
64
|
env:
|
|
@@ -78,7 +78,7 @@ jobs:
|
|
|
78
78
|
with:
|
|
79
79
|
# A commit pin does not get the branch-name default of stable.
|
|
80
80
|
toolchain: stable
|
|
81
|
-
- uses: Swatinem/rust-cache@
|
|
81
|
+
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
82
82
|
- name: Install dev dependencies
|
|
83
83
|
run: |
|
|
84
84
|
python -m venv .venv
|
|
@@ -14,7 +14,7 @@ dependencies = [
|
|
|
14
14
|
|
|
15
15
|
[[package]]
|
|
16
16
|
name = "dockerfile-analyzer"
|
|
17
|
-
version = "0.4.
|
|
17
|
+
version = "0.4.3"
|
|
18
18
|
dependencies = [
|
|
19
19
|
"docker-image",
|
|
20
20
|
"parse-dockerfile",
|
|
@@ -72,9 +72,9 @@ dependencies = [
|
|
|
72
72
|
|
|
73
73
|
[[package]]
|
|
74
74
|
name = "pyo3"
|
|
75
|
-
version = "0.
|
|
75
|
+
version = "0.30.1"
|
|
76
76
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
77
|
-
checksum = "
|
|
77
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
78
78
|
dependencies = [
|
|
79
79
|
"libc",
|
|
80
80
|
"once_cell",
|
|
@@ -86,18 +86,18 @@ dependencies = [
|
|
|
86
86
|
|
|
87
87
|
[[package]]
|
|
88
88
|
name = "pyo3-build-config"
|
|
89
|
-
version = "0.
|
|
89
|
+
version = "0.30.1"
|
|
90
90
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
91
|
-
checksum = "
|
|
91
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
92
92
|
dependencies = [
|
|
93
93
|
"target-lexicon",
|
|
94
94
|
]
|
|
95
95
|
|
|
96
96
|
[[package]]
|
|
97
97
|
name = "pyo3-ffi"
|
|
98
|
-
version = "0.
|
|
98
|
+
version = "0.30.1"
|
|
99
99
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
100
|
-
checksum = "
|
|
100
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
101
101
|
dependencies = [
|
|
102
102
|
"libc",
|
|
103
103
|
"pyo3-build-config",
|
|
@@ -105,9 +105,9 @@ dependencies = [
|
|
|
105
105
|
|
|
106
106
|
[[package]]
|
|
107
107
|
name = "pyo3-macros"
|
|
108
|
-
version = "0.
|
|
108
|
+
version = "0.30.1"
|
|
109
109
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
110
|
-
checksum = "
|
|
110
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
111
111
|
dependencies = [
|
|
112
112
|
"proc-macro2",
|
|
113
113
|
"pyo3-macros-backend",
|
|
@@ -117,9 +117,9 @@ dependencies = [
|
|
|
117
117
|
|
|
118
118
|
[[package]]
|
|
119
119
|
name = "pyo3-macros-backend"
|
|
120
|
-
version = "0.
|
|
120
|
+
version = "0.30.1"
|
|
121
121
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
122
|
-
checksum = "
|
|
122
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
123
123
|
dependencies = [
|
|
124
124
|
"heck",
|
|
125
125
|
"proc-macro2",
|
|
@@ -175,9 +175,9 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
|
175
175
|
|
|
176
176
|
[[package]]
|
|
177
177
|
name = "syn"
|
|
178
|
-
version = "
|
|
178
|
+
version = "3.0.9"
|
|
179
179
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
-
checksum = "
|
|
180
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
181
181
|
dependencies = [
|
|
182
182
|
"proc-macro2",
|
|
183
183
|
"quote",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "dockerfile-analyzer"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.3"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ name = "dockerfile_analyzer"
|
|
|
10
10
|
crate-type = ["cdylib"]
|
|
11
11
|
|
|
12
12
|
[dependencies]
|
|
13
|
-
pyo3 = "0.
|
|
13
|
+
pyo3 = "0.30.1"
|
|
14
14
|
docker-image = {version = "0.2.1"}
|
|
15
15
|
parse-dockerfile = { version = "0.1.7", default-features = false }
|
|
16
16
|
shlex = "2.0.1"
|
|
@@ -18,7 +18,7 @@ fn fmt_opt_map(map: &BTreeMap<String, Option<String>>) -> String {
|
|
|
18
18
|
format!("{{{body}}}")
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
#[pyclass
|
|
21
|
+
#[pyclass]
|
|
22
22
|
#[doc = "Instructions and their counts.
|
|
23
23
|
|
|
24
24
|
Counts are keyed by the Dockerfile instruction name (`FROM`, `RUN`, ...).
|
|
@@ -50,7 +50,7 @@ impl InstructionStats {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
#[pyclass
|
|
53
|
+
#[pyclass]
|
|
54
54
|
#[doc = "Parsed components of a Docker image reference.
|
|
55
55
|
|
|
56
56
|
Attributes:
|
|
@@ -93,7 +93,7 @@ impl ImageComponents {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
#[pyclass
|
|
96
|
+
#[pyclass]
|
|
97
97
|
#[doc = "Information about a Docker image used in a Dockerfile.
|
|
98
98
|
|
|
99
99
|
Attributes:
|
|
@@ -131,7 +131,7 @@ impl Image {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
#[pyclass
|
|
134
|
+
#[pyclass]
|
|
135
135
|
#[doc = "How named stages are referenced by later instructions.
|
|
136
136
|
|
|
137
137
|
`is_multistage` is true when the Dockerfile has at least two stages and a
|
|
@@ -181,7 +181,7 @@ impl MultistageAnalysis {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
#[pyclass
|
|
184
|
+
#[pyclass]
|
|
185
185
|
#[doc = "One build stage, from its `FROM` line to the next `FROM`.
|
|
186
186
|
|
|
187
187
|
Values are the stage's own, as written in that stage. Nothing is inherited
|
|
@@ -273,7 +273,7 @@ impl Stage {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
#[pyclass
|
|
276
|
+
#[pyclass]
|
|
277
277
|
#[doc = "Analysis of one Dockerfile.
|
|
278
278
|
|
|
279
279
|
Image references that do not contain `$` are lowercased, so `Ubuntu:22.04`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dockerfile_analyzer-0.4.2 → dockerfile_analyzer-0.4.3}/tests/fixtures/multistage.Dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|