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

Packaging of JS artifact on windows: Path too long #27172

Open
MementoRC opened this issue Aug 4, 2024 · 0 comments
Open

Packaging of JS artifact on windows: Path too long #27172

MementoRC opened this issue Aug 4, 2024 · 0 comments
Labels

Comments

@MementoRC
Copy link
Contributor

Bug:

While going through the packaging phase of a recipe on windows I see:

Packaged license file/s.
Traceback (most recent call last):
  File "D:\a\1\s\.ci_support\build_all.py", line 261, in <module>
    build_all(os.path.join(root_dir, "recipes"), args.arch)
  File "D:\a\1\s\.ci_support\build_all.py", line 151, in build_all
    build_folders(recipes_dir, folders, arch, channel_urls)
  File "D:\a\1\s\.ci_support\build_all.py", line 207, in build_folders
    conda_build.api.build([recipe], config=get_config(arch, channel_urls))
  File "C:\Miniforge\lib\site-packages\conda_build\api.py", line 209, in build
    return build_tree(
  File "C:\Miniforge\lib\site-packages\conda_build\build.py", line 3712, in build_tree
    packages_from_this = build(
  File "C:\Miniforge\lib\site-packages\conda_build\build.py", line 2765, in build
    newly_built_packages = bundlers[pkg_type](
  File "C:\Miniforge\lib\site-packages\conda_build\build.py", line 1889, in bundle_conda
    output["checksums"] = create_info_files(
  File "C:\Miniforge\lib\site-packages\conda_build\build.py", line 1417, in create_info_files
    files_with_prefix = get_files_with_prefix(m, replacements, files, prefix)
  File "C:\Miniforge\lib\site-packages\conda_build\build.py", line 1056, in get_files_with_prefix
    pfx_matches = have_regex_files(
  File "C:\Miniforge\lib\site-packages\conda_build\build.py", line 542, in have_regex_files
    match_records_rg = regex_files_rg(
  File "C:\Miniforge\lib\site-packages\conda_build\build.py", line 268, in regex_files_rg
    raise e
  File "C:\Miniforge\lib\site-packages\conda_build\build.py", line 260, in regex_files_rg
    subprocess.check_output(args, shell=False).rstrip(b"\n").split(b"\n")
  File "C:\Miniforge\lib\subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Miniforge\lib\subprocess.py", line 503, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Miniforge\lib\subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Miniforge\lib\subprocess.py", line 1456, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 206] The filename or extension is too long

https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=995507&view=logs&j=240f1fee-52bc-5498-a14a-8361bde76ba0&t=7c0f8eae-6d6f-51bf-636f-73a1a7fb1bc4&l=2158

@MementoRC MementoRC added the bug label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant