Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transmutation with micromamba #692

Merged
merged 5 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions constructor/preconda.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,11 @@ def write_files(info, dst_dir):

with open(join(dst_dir, 'urls'), 'w') as fo:
for url, md5 in all_final_urls_md5s:
url = ensure_transmuted_ext(info, url)
fo.write('%s#%s\n' % (url, md5))
maybe_different_url = ensure_transmuted_ext(info, url)
if maybe_different_url != url: # transmuted, no md5
fo.write(f"{maybe_different_url}\n")
else:
fo.write(f"{url}#{md5}\n")

with open(join(dst_dir, 'urls.txt'), 'w') as fo:
for url, _ in all_final_urls_md5s:
Expand Down Expand Up @@ -239,7 +242,12 @@ def write_env_txt(info, dst_dir, urls):
).lstrip()
with open(join(dst_dir, "env.txt"), "w") as envf:
envf.write(header)
envf.write('\n'.join([f"{url}#{md5}" for url, md5 in urls]))
for url, md5 in urls:
maybe_different_url = ensure_transmuted_ext(info, url)
if maybe_different_url != url: # transmuted, no md5
envf.write(f"{maybe_different_url}\n")
else:
envf.write(f"{url}#{md5}\n")


def write_channels_txt(info, dst_dir, env_config):
Expand Down
19 changes: 19 additions & 0 deletions news/692-micromamba-transmutation
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Adjust `@EXPLICIT` input file so that `micromamba` correctly finds the cache entries of transmuted packages. (#674 via #692)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>