Build hangs at 'yarn run plugins:build-bundled' with 'make clean all'

My build does not proceed after ‘yarn run plugins:build-bundled’ step and hangs forever. This was working before, it stopped working after 8.5.0. OTOH 8.4.7 builds successfully as expected.

  • What Grafana version and what operating system are you using?
    Grafana: 8.5.2
    Fedora 35
    Nodejs: 16.14.0

  • What are you trying to achieve?
    Trying to build grafana for my own deployment with ‘make clean all’

  • How are you trying to achieve it?
    Trying to get a built grafana for deployment to our production systems

  • What happened?
    Build does not proceed after ‘yarn run plugins:build-bundled’ step

  • What did you expect to happen?
    It builds as expected

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

webpack 5.70.0 compiled with 2 warnings in 195861 ms
yarn run plugins:build-bundled
Running in local/linked mode
Running Bundle managed plugins task
  [internal]: input-datasource building...
  [Error: ENOENT: no such file or directory, scandir '/code/grafana/gopath/grafana/plugins-bundled/external'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'scandir',
    path: '/code/grafana/gopath/grafana/plugins-bundled/external'
  }