Skip to content

Commit

Permalink
Make version an argument and set it to build_key
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaretnikov committed Dec 22, 2023
1 parent f8254a0 commit 47ef603
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def action_generate_constructor_installer(
conda_command: str,
specification: schema.CondaSpecification,
installer_dir: pathlib.Path,
version: str,
):
# Helpers
def print_cmd(cmd):
Expand Down Expand Up @@ -58,8 +59,7 @@ def write_file(filename, s):
"name": specification.name,
"channels": specification.channels,
"specs": dependencies,
# XXX: This is required: use the env hash and datetime?
"version": 1,
"version": version,
}

if sys.platform == "win32":
Expand Down
1 change: 1 addition & 0 deletions conda-store-server/conda_store_server/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def build_constructor_installer(db: Session, conda_store, build: orm.Build):
build.specification.spec
),
installer_dir=pathlib.Path(tmpdir),
version=build.build_key,
)
output_filename = context.result
append_to_logs(
Expand Down
1 change: 1 addition & 0 deletions conda-store-server/tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def test_generate_constructor_installer(conda_store, specification_name, request
conda_command=conda_store.conda_command,
specification=specification,
installer_dir=installer_dir,
version="1",
)

# Checks that the installer was created
Expand Down

0 comments on commit 47ef603

Please sign in to comment.