You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have constructor 3.1.0 from conda install -y ctools/label/dev::constructor
and when I try to create a new installer from the environment, I get the following error:
❯❯❯ constructor --cache-dir cache --output-dir dist .
platform: osx-64
Traceback (most recent call last):
File "/Users/user/miniconda3/envs/test/bin/constructor", line 11, in <module>
sys.exit(main())
File "/Users/user/miniconda3/envs/test/lib/python3.8/site-packages/constructor/main.py", line 243, in main
main_build(dir_path, output_dir=out_dir, platform=args.platform,
File "/Users/user/miniconda3/envs/test/lib/python3.8/site-packages/constructor/main.py", line 111, in main_build
fcp_main(info, verbose=verbose, dry_run=dry_run, conda_exe=conda_exe)
File "/Users/user/miniconda3/envs/test/lib/python3.8/site-packages/constructor/fcp.py", line 383, in main
_urls, dists, approx_tarballs_size, approx_pkgs_size, has_conda = _main(
File "/Users/user/miniconda3/envs/test/lib/python3.8/site-packages/constructor/fcp.py", line 309, in _main
pc_recs = _fetch(download_dir, precs)
File "/Users/user/miniconda3/envs/test/lib/python3.8/site-packages/constructor/fcp.py", line 110, in _fetch
assert pc.is_writable, download_dir + " does not exist or is not writable"
AssertionError: [---redacted---]/cache/osx-64 does not exist or is not writable
However, if I run it with the -v option, it does run successfully 😮
I noticed that the setuid bit is set when using -v, but not otherwise.
❯❯❯ constructor -v --cache-dir cache --output-dir dist .
[...]
❯❯❯ ls -lha | grep cache
drwxrwsr-x 3 user 1244544504 96B Oct 31 21:24 cache
❯❯❯ rm -rf cache
❯❯❯ constructor --cache-dir cache --output-dir dist .
[...Error above...]
❯❯❯ ls -lha | grep cache
drwxr-x--- 3 user 1244544504 96B Oct 31 21:24 cache
Any clues?
How to reproduce:
Install miniconda
./Miniconda3-latest-MacOSX-x86_64.sh
Welcome to Miniconda3 py38_4.8.3
...
It looks like the only non-print-to-stdout call that verbose is directly responsible for in constructor is this function to check for outdated records. Interestinhglhy, this relies on SubdirData.query_all(), which features a create_cache_dir() call :)
That function delegates the creation of the directory to another one, which makes sure the permission bits are correctly set.
Hi all,
I have constructor 3.1.0 from
conda install -y ctools/label/dev::constructor
and when I try to create a new installer from the environment, I get the following error:
However, if I run it with the
-v
option, it does run successfully 😮I noticed that the setuid bit is set when using
-v
, but not otherwise.Any clues?
How to reproduce:
Install miniconda
open a new session:
Thanks in advance.
The text was updated successfully, but these errors were encountered: