Skip to content

couscous deploy copy error: target could not be opened for writing #226

@BenCrulis

Description

@BenCrulis

Context

I made some local changes in my git configuration, played with git submodules and branches and then suddenly couscous deploy ceased to work.
I now always get the same error:

$ couscous deploy
Generating /path_to_project to /path_to_project/.couscous/generated
[notice] Executing cd "/path_to_project" && cp -r figures/ .couscous/generated/

Deploying the website
Cloning https://github.com/bencrulis/BDMA_M1_Project in /tmp/couscous_deploy_cqlLxP
Checking out branch gh-pages
Copying generated website

In Filesystem.php line 63:
                                                                               
  Failed to copy "/path_to_project/.couscous/generated/.git" to "/tmp/couscous_deploy_cqlLxP/.git" because target file could not be opened for writing.                                              
                                                                               
deploy [--repository REPOSITORY] [--branch BRANCH] [--config CONFIG] [--] [<source>]

Couscous seems to have the writing permission but the source is a file and the target is a folder.

The content of the .git file in question is

gitdir: ../.git/modules/website

What I tried

Couscous preview still works perfectly.

Although no commit or push was done, it also ceased to work when deploying from another machine.

I also hoped adding .git to the excluded folders in couscous.yml would change something but it didn't work.

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