Skip to content

Failed to fetch bison submodules #1611

Open
@dabao1955

Description

@dabao1955

this is a simple workflow step for checkout:

      - name: Checkout bison
        uses: actions/checkout@v4
        with:
          repository: akimd/bison
          path: bison
          fetch-depth: 2
          submodules: true

when workflow runs: it has some error

Run actions/checkout@v4
  with:
    repository: akimd/bison
    path: bison
    fetch-depth: 2
    submodules: true
    token: ***
    ssh-strict: true
    persist-credentials: true
    clean: true
    sparse-checkout-cone-mode: true
    fetch-tags: false
    show-progress: true
    lfs: false
    set-safe-directory: true
Syncing repository: akimd/bison
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/44d695d8-2739-45f6-bd30-f62b238d8acc' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/toolchain_build/toolchain_build/bison
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Determining the default branch
Fetching the repository
Determining the checkout info
Checking out the ref
Setting up auth for fetching submodules
Fetching submodules
  /usr/bin/git submodule sync
  /usr/bin/git -c protocol.version=2 submodule update --init --force --depth=2
  Submodule 'gnulib' (git://git.savannah.gnu.org/gnulib.git) registered for path 'gnulib'
  Submodule 'submodules/autoconf' (git://git.sv.gnu.org/autoconf.git) registered for path 'submodules/autoconf'
  Cloning into '/home/runner/work/toolchain_build/toolchain_build/bison/gnulib'...
  Cloning into '/home/runner/work/toolchain_build/toolchain_build/bison/submodules/autoconf'...
  From git://git.savannah.gnu.org/gnulib
   * branch              71b603702b8cf7977dedd5f6b71ea0ffc1669894 -> FETCH_HEAD
  Submodule path 'gnulib': checked out '71b603702b8cf7977dedd5f6b71ea0ffc1669894'
  Error: error: Server does not allow request for unadvertised object 66fdaea3cfb4e758212c1891913e9a59441d49af
  Error: fatal: Fetched in submodule path 'submodules/autoconf', but it did not contain 66fdaea3cfb4e758212c1891913e9a59441d49af. Direct fetching of that commit failed.
  Error: The process '/usr/bin/git' failed with exit code 128

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions