<#19480 Unable to run `fmt` on fresh repo `main` d...
# github-notifications
c
#19480 Unable to run `fmt` on fresh repo `main` due to coursier incorrect architecture bug Issue created by sureshjoshi So, I thought this bug was just on one of my feature branches because I had done something whacky as of a month or two ago. Turns out it's happening to me on
main
on a completely freshly checked out repo as well! I mean, a few dozen questions here about why it seems to be just my machine and some other stuff, but there are no modifications to the repo - so I don't even think the JVM backend should be running... This comment links back to a long-running discussion on this topic.
pants --changed-since=origin/main fmt
Copy code
Engine traceback:
  in select
    ..
  in pants.core.goals.fmt.fmt
    `fmt` goal

Traceback (most recent call last):
  File "pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "pants/src/python/pants/core/goals/fmt.py", line 77, in fmt
    return await _do_fix(
  File "pants/src/python/pants/core/goals/fix.py", line 273, in _do_fix
    partitions_by_request_type = await _get_partitions_by_request_type(
  File "pants/src/python/pants/core/goals/lint.py", line 392, in _get_partitions_by_request_type
    all_partitions = await MultiGet(
  File "pants/src/python/pants/engine/internals/selectors.py", line 361, in MultiGet
    return await _MultiGet(tuple(__arg0))
  File "pants/src/python/pants/engine/internals/selectors.py", line 168, in __await__
    result = yield self.gets
  File "pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "pants/src/python/pants/backend/scala/lint/scalafmt/rules.py", line 125, in partition_scalafmt
    tool_classpath, config_files = await MultiGet(
  File "pants/src/python/pants/engine/internals/selectors.py", line 512, in MultiGet
    return await _MultiGet((__arg0, __arg1))
  File "pants/src/python/pants/engine/internals/selectors.py", line 168, in __await__
    result = yield self.gets
  File "pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "pants/src/python/pants/jvm/resolve/coursier_fetch.py", line 795, in materialize_classpath_for_tool
    classpath_entries = await Get(ResolvedClasspathEntries, CoursierResolvedLockfile, resolution)
  File "pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "pants/src/python/pants/jvm/resolve/coursier_fetch.py", line 639, in coursier_fetch_lockfile
    classpath_entries = await MultiGet(
  File "pants/src/python/pants/engine/internals/selectors.py", line 361, in MultiGet
    return await _MultiGet(tuple(__arg0))
  File "pants/src/python/pants/engine/internals/selectors.py", line 168, in __await__
    result = yield self.gets
  File "pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "pants/src/python/pants/jvm/resolve/coursier_fetch.py", line 583, in coursier_fetch_one_coord
    process_result = await Get(
  File "pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
pants.engine.process.ProcessExecutionFailure: Process 'Fetching with coursier: com.geirsson:metaconfig-core_2.13:0.9.15' failed with exit code 1.
stdout:

stderr:
+ coursier_exe=__coursier/./cs-x86_64-apple-darwin
+ shift
+ json_output_file=coursier_report.json
+ shift
++ pwd
+ working_dir=/private/var/folders/dy/q08y_dts5vd71rm99t4gc9lr0000gp/T/pants-sandbox-0fBRsB
+ __coursier/./cs-x86_64-apple-darwin fetch -r=<https://maven-central.storage-download.googleapis.com/maven2> -r=<https://repo1.maven.org/maven2> --no-default --json-output-file=coursier_report.json --intransitive com.geirsson:metaconfig-core_2.13:0.9.15
__coursier/coursier_fetch_wrapper_script.sh: line 9: __coursier/./cs-x86_64-apple-darwin: Bad CPU type in executable
Copy code
'c.          sj
                 ,xNMM.          ----------------- 
               .OMMMMo           OS: macOS 13.4.1 22F82 arm64 
               OMMM0,            Host: Mac14,12 
     .;loddo:' loolloddol;.      Kernel: 22.5.0 
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 2 days, 6 hours, 22 mins 
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 91 (brew) 
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.9 
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 2560x1080, 1920x1080 
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua 
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Dark) 
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: Apple_Terminal 
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: SFMono-Regular 
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M2 Pro 
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M2 Pro 
       .cooc,.    .,coo:.        Memory: 3982MiB / 32768MiB
pantsbuild/pants