Skip to content

Commit 4448144

Browse files
authored
Merge pull request #616 from timsnyder/patch-1
Update header cmdlines in generated lockfiles (#518)
2 parents 38ec395 + a93cdc7 commit 4448144

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

conda_lock/lockfile/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,22 +187,22 @@ def write_section(text: str) -> None:
187187
available, unless you explicitly update the lock file.
188188
189189
Install this environment as "YOURENV" with:
190-
conda-lock install -n YOURENV --file {path.name}
190+
conda-lock install -n YOURENV {path.name}
191191
"""
192192
)
193193
if "dev" in categories:
194194
write_section(
195195
f"""
196196
This lock contains optional development dependencies. Include them in the installed environment with:
197-
conda-lock install --dev-dependencies -n YOURENV --file {path.name}
197+
conda-lock install --dev-dependencies -n YOURENV {path.name}
198198
"""
199199
)
200200
extras = sorted(categories.difference({"main", "dev"}))
201201
if extras:
202202
write_section(
203203
f"""
204204
This lock contains optional dependency categories {', '.join(extras)}. Include them in the installed environment with:
205-
conda-lock install {' '.join('-e '+extra for extra in extras)} -n YOURENV --file {path.name}
205+
conda-lock install {' '.join('-e '+extra for extra in extras)} -n YOURENV {path.name}
206206
"""
207207
)
208208
write_section(

0 commit comments

Comments
 (0)