Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-8103

Error: Failed to replace env in config

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 4.2.6
    • General
    • None
    • Severity 2 - Major

    Description

      Sourcetree for mac v.4.2.6
      MacbookPro M1
      zsh terminal

      I have a custom env variable REGISTRY_TOKEN in my project. This variable is set in the system .zshrc file as export REGISTRY_TOKEN=abc as example

      I have an error when try to commit. 
      *git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/3j/yrl5qmls62d4jrsg00gsb14h0000gn/T/SourceTreeTemp.kLBmAN -a
      error Error: Failed to replace env in config: ${REGISTRY_TOKEN}
      at /opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:94917:13
      at String.replace (<anonymous>)
      at envReplace (/opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:94912:16)
      at Function.normalizeConfig (/opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:31941:69)
      at NpmRegistry.<anonymous> (/opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:31971:34)
      at Generator.next (<anonymous>)
      at step (/opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:310:30)
      at /opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:321:13
      Completed with errors, see above*

      I found only one way to solve this problem, open Sourcetree through the console. By "open /Applications/Sourcetree.app", and the application runs fine and the commit is successful..

      Maybe there are other ways to solve the problem?

      Attachments

        Activity

          People

            2566180e0bc8 Arati Mohanty
            a696b2df109f anton_lavrenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: