μ’ μμ±μ μ€μΉνκΈ° μν΄ conda.lock νμΌμ μ¬μ©νκ³ μμ΅λλ€. μΊμν μ μλ λ°©λ²μ΄ μλμ§ κΆκΈν©λλ€. νμ¬ μΌλ° μΊμ±μ΄ μλνμ§ μλ κ² κ°μ΅λλ€.
ν ... μ κΈ νμΌμ λ§μ΄ μ¬μ©νκ³ μμΌλ©° μΊμ±μ Linux λ° osxμμ μλν©λλ€.
Windowsμμλ μλνμ§ μμΌλ©° λλ₯Ό μ¬νκ² νμ§λ§ λλμ§λ μμ΅λλ€.
λ¬Έμ μ 리ν¬μ§ν 리μ λν λ§ν¬, λ‘κ·Έ λλ "μλνμ§ μμ" μ΄μΈμ μΆκ° μ λ³΄κ° μμΌλ©΄ λμμ΄ λ κ²μ λλ€!
λΉ λ₯Έ λ΅λ³μ @bollwyvl μκ² κ°μ¬λ립λλ€.
λ μΌμ° λ μμΈν μ 보λ₯Ό μ 곡νμ§ λͺ»ν΄ μ£μ‘ν©λλ€. μ λ μ₯λκ° λ¦¬ν¬μ§ν 리μμ μ€ν μ€μ λλ€. μ¬κΈ°μμ μ΅κ·Ό λ‘κ·Έλ₯Ό μ°Ύμ μ μμ΅λλ€.
https://github.com/ma-sadeghi/xyztest/runs/1534789528?check_suite_focus=true
μΊμ ν¬κΈ°λ ~0MBλ‘ λ³΄κ³ λ©λλ€.
μΆμ . λλ μ΄ λ¦¬ν¬μ§ν 리μ setup-miniconda
λ₯Ό μ¬μ©νμ§ μκ³ CI λ¨Έμ μ λ΄μ₯λ conda
μ ν¨κ» μλνλλ‘ νλ €κ³ νμ΅λλ€.
@bollwyvl
yml
νμΌμ μ½κ° νκ³ setup-miniconda
μ΄ν΄λ³΄λ©΄ λ΄κ° λ§μ μΌμ μλͺ»νκ³ μλ€λ κ²μ΄ λ°νμ‘μ΅λλ€. μΊμ ν΄λ( ~/conda_pkgs_dir
)κ° μ‘΄μ¬νμ§ μμ μλμΌλ‘ λ§λ€μ΄μΌ νμΌλ©° ~/conda_pkgs_dir
λ₯Ό κ°λ¦¬ν€λλ‘ CONDA_PKGS_DIRS
νκ²½ λ³μλ₯Ό μ€μ νμ§ μμμ΅λλ€. κ°μ₯ μ΅κ·Όμ λ°λ³΅μ λ€μκ³Ό κ°μ΅λλ€.
https://github.com/ma-sadeghi/xyztest/runs/1535236467?check_suite_focus=true
μΊμ±μ΄ μ λλ‘ μλνκ³ "μ’ μμ± μ€μΉ" λ¨κ³κ° ν¨μ¬ λΉ¨λΌμ§ κ² κ°μ΅λλ€.
ν΅μ°°λ ₯ μ£Όμ μ κ°μ¬ν©λλ€.
νμ! λͺ¨λλ₯Ό μν μΊμ!
μ 체 ν΄λλ₯Ό μΊμ±νλ©΄ μ λλ‘ μλνμ§ μμ΅λλ€.
μΊμμλ tarball _λ°_ μμΆ ν΄μ λ λ΄μ©μ΄ λͺ¨λ ν¬ν¨λμ΄ μμ΅λλ€.
ν¬μ€νΈ λ¨κ³ λ¨κ³ μ°λ¦¬λ (μλ) κ·Έ μ€ μΌλΆλ₯Ό μ 리ν©λλ€.
κ³ μ₯λ κ²μ΄ μμΌλ©΄ μμ λ‘κ² λ«μΌμμμ€ ... νΉν λ€μκ³Ό κ°μ΄
μ΄ μμ
μ κ΄μ¬νμ§ μμμ΅λλ€.
@bollwyvl μ£μ‘ν©λλ€ μ΄κ²μ΄ μμ ν μ΄
λ€ κ·Έ μ λ ν¬κΈ°μ λλ€.
https://github.com/conda-incubator/setup-miniconda/blob/master/src/delete.ts
κ·Έ λ°μλ λ λ§μ κ²λ€μ΄ μμ§λ§, κ·Έμ λΉνλ©΄ μ²λ°ν κ²λ€μ
λλ€.
μλ₯Ό λ€μ΄ mkl λλ qtμ μμΆμ νλλ€.
@bollwyvl λΉ λ₯Έ μ§λ¬Έ: delete.ts
보면 .tar.bz2
μμΆ νμΌμ΄ μλλΌ μμΆλμ§ μμ ν΄λλ₯Ό μμ νλ κ² κ°μ΅λλ€. λ΄κ° λκ°λ₯Ό λμΉκ³ μλ κ² κ°μ§λ§, κ·Έλ κ² ν¨μΌλ‘μ¨ condaλ μΆκ° "μμΆ ν΄μ " λ¨κ³λ₯Ό μνν΄μΌ νλ λ°λ©΄, .tar.bz2
κ° μμ λλ©΄ conda
λ μ΄λ―Έ μμΆ ν΄μ λ κ²μ λ¨μν μ¬μ¬μ©ν μ μμ΅λλ€. ν΄λ. λλ λ΄ μ»΄ν¨ν°μμ κ·Έκ²μ μλνκ³ νμκ° λ λΉ λ₯Έ μ€μΉλ‘ μ΄μ΄μ§λ κ²μ²λΌ 보μμ΅λλ€.
λλ λΉμ μ΄ conda cleanμ μ€νν μ μλ€κ³ μκ°ν©λλ€. @bollwyvl μλ§λ delete.ts
λμ μ κ·Έκ²μ μ¬μ©ν μ μμ κ²μ
λλ€. κ·Έ μκ°μ conda cleanμ μΈμνμ§ λͺ»νκΈ° λλ¬Έμ κ·Έλ κ² νμ΅λλ€.
$ conda clean --help
usage: conda clean [-h] [-a] [-i] [-p] [-t] [-f]
[-c TEMPFILES [TEMPFILES ...]] [-d] [--json] [-q] [-v] [-y]
Remove unused packages and caches.
Options:
optional arguments:
-h, --help Show this help message and exit.
Removal Targets:
-a, --all Remove index cache, lock files, unused cache packages,
and tarballs.
-i, --index-cache Remove index cache.
-p, --packages Remove unused packages from writable package caches.
WARNING: This does not check for packages installed
using symlinks back to the package cache.
-t, --tarballs Remove cached package tarballs.
-f, --force-pkgs-dirs
Remove *all* writable package caches. This option is
not included with the --all flag. WARNING: This will
break environments with packages installed using
symlinks back to the package cache.
-c TEMPFILES [TEMPFILES ...], --tempfiles TEMPFILES [TEMPFILES ...]
Remove temporary files that could not be deleted
earlier due to being in-use. Argument is path(s) to
prefix(es) where files should be found and removed.
Output, Prompt, and Flow Control Options:
-d, --dry-run Only display what would have been done.
--json Report all output as json. Suitable for using conda
programmatically.
-q, --quiet Do not display progress bar.
-v, --verbose Can be used multiple times. Once for INFO, twice for
DEBUG, three times for TRACE.
-y, --yes Do not ask for confirmation.
Examples:
conda clean --tarballs
λ μμ μΊμμ λν λͺ κ°μ§ μΆκ° μμ΄λμ΄: