Skip to content

Zarf will fail a re-init when non-defaults users or registry mode is used #4332

@AustinAbro321

Description

@AustinAbro321

Environment

App version: v0.62.0-v0.65.0

Steps to reproduce

  1. zarf init --git-push-username=giteaUser --git-push-password=commonPassword --git-url=http://my-server:3000 --registry-push-username="registryUser" --registry-push-password="commonPassword" --registry-url=registryHost:5000/test"
  2. Run zarf init again

Expected result

The zarf init will work, using the previous state

Actual Result

zarf init fails with the following error message.

2025-10-30 17:23:50 INF using config file location=/home/austin/code/zarf/zarf-config.toml
2025-10-30 17:23:50 ERR cannot change git server information after initial init, to update run `zarf tools update-creds git`

Severity/Priority

High

Additional Context

In v0.64.0 the issue occurred with name changes to the registry user. In v0.65.0 the issue also occurs with external registries, if the registry url is not set to what is what it is in state

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions