Skip to content

librarian: release init for "whole library" repo fails #2429

@jskeet

Description

@jskeet

I believe this is a problem with the new implementation to implement #2218

Command line:

LIBRARIAN_GITHUB_TOKEN=$(gh auth token) librarian release init -repo=https://github.com/jskeet/gapic-generator-go -push -branch=test-release -library=generator

State file on branch:

image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/librarian-go:latest
libraries:
  - id: generator
    version: 0.53.1
    source_roots:
      - '.'
    tag_format: 'v{version}'

Error:

failed to copy librarian dir from /tmp/librarian-99832526/gapic-generator-go to /tmp/librarian-99832526/release-init: open /tmp/librarian-99832526/release-init/.librarian/config.yaml: file exists

I suspect it's failing because it's trying to copy ".", which includes the .librarian directory which has already been copied separately.

Jeff, if I've misdiagnosed this, please let me know.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions