Skip to content

Commit

Permalink
toposort, add newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Nov 15, 2024
1 parent 40588e8 commit 9caa239
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions constructor/build_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from conda.base.constants import UNKNOWN_CHANNEL
from conda.common.url import remove_auth, split_anaconda_token
from conda.core.prefix_data import PrefixGraph

from . import __version__

Expand Down Expand Up @@ -101,14 +102,14 @@ def dump_lockfile(info, env="base"):
lines = [
"# This file may be used to create an environment using:",
"# $ conda create --name <env> --file <this file>",
f"# installer-name: {info['name']}"
f"# installer-version: {info['version']}"
f"# env-name: {env}"
f"# installer-name: {info['name']}",
f"# installer-version: {info['version']}",
f"# env-name: {env}",
f"# platform: {info['_platform']}",
f"# created-by: constructor {__version__}",
"@EXPLICIT"
]
for record in records:
for record in PrefixGraph(records).graph:
url = record.get("url")
if not url or url.startswith(UNKNOWN_CHANNEL):
print("# no URL for: {}".format(record["fn"]))
Expand Down

0 comments on commit 9caa239

Please sign in to comment.