Skip to content

[feature] Bender.local only overwriting the git remote url #278

@sebphem-tt

Description

@sebphem-tt

Looking at the readme:

bender/README.md

Lines 423 to 425 in 52fe767

overrides:
common_cells: { path: "/var/magic/common_cells" }
apb_uart: { git: "git@github.com:pulp-platform/apb_uart.git"}

We show that we can only overwrite the git variable for a dependency with common_cells:

overrides:
  common_cells: { path: "/var/magic/common_cells" }
  apb_uart:     { git: "git@github.com:pulp-platform/apb_uart.git"}

I was looking to use this for my use case, but after trying the following implementation (repo names, groups and servers have been redacted):

Bender.yml contents:

dependencies:
 repo_1:                          { git: "git@git_server:group_1/repo_1.git", rev: "sha_1"}
 repo_2:                          { git: "git@git_server:group_1/repo_2.git", rev: "sha_2"}
 repo_3:                          { git: "git@git_server:group_1/repo_3.git", rev: "sha_3"}

Bender.local contents:

overrides:
 repo_1:                          { git: "git@git_server:group_1/repo_1.git"}
 repo_2:                          { git: "git@git_server:group_1/repo_2.git"}
 repo_3:                          { git: "git@git_server:group_1/repo_3.git"}

When running the following command:
bender checkout

I'm given the following error:

Error: Invalid configuration: In override `repo_1`: Dependency `` with `git` must also specify `rev` or `version`.

Is it possible to update the readme to clarify this is not possible or to add this functionality to Bender?

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