Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] czg not loads ~/.czrc or ~/.cz.json global config #42

Closed
tomasky opened this issue Jun 28, 2022 · 13 comments
Closed

[Feature Request] czg not loads ~/.czrc or ~/.cz.json global config #42

tomasky opened this issue Jun 28, 2022 · 13 comments
Assignees
Labels
enhancement New feature or request

Comments

@tomasky
Copy link

tomasky commented Jun 28, 2022

💭 Describe the feature

~/.czrc or ~/.cz.json works

💡 Proposed Solution

No response

@tomasky tomasky added the enhancement New feature or request label Jun 28, 2022
@Zhengqbbb
Copy link
Owner

Use the commitizen CLI or the czg CLI?
Also send your config file

@tomasky
Copy link
Author

tomasky commented Jun 28, 2022

czg ,
.czrc:

{
    "scopes": ["app", "home", "account", "comment"] 
}

@tomasky tomasky changed the title [Feature Request] ~/.czrc or ~/.cz.json not working [Feature Request] czg not loads ~/.czrc or ~/.cz.json global config Jun 28, 2022
@Zhengqbbb
Copy link
Owner

works,
please check if it's the latest version number, and the project file, it may be interfering

a

@tomasky
Copy link
Author

tomasky commented Jun 28, 2022

cat ~/.czrc
{
   "scopes": ["app", "home", "account", "comment"] 
}


czg
czg@1.3.8

? Select the type of change that you're committing: feat:     A new feature
? Denote the SCOPE of this change (optional): 
❯ empty 
  custom 

@tomasky
Copy link
Author

tomasky commented Jun 28, 2022

but
czg --config="/home/someone/.czrc" works

@Zhengqbbb
Copy link
Owner

czg , .czrc:

{
    "scopes": ["app", "home", "account", "comment"] 
}

This is the case, check whether there is .czrc .czrc .cz.js cz.config.js | package.json whether there is config.commitizen in the current project

@Zhengqbbb
Copy link
Owner

send npx envinfo --system --binaries --npmPackages cz-git --npmPackages commitizen --npmPackages czg --npmGlobalPackages cz-git --npmGlobalPackages commitizen --npmGlobalPackages czg

@Zhengqbbb
Copy link
Owner

run the command check if is bug. This is a minimal reproduction example

cd ../ && mkdir test && cd test && git init && npm init -y && git add . && czg

@tomasky
Copy link
Author

tomasky commented Jun 28, 2022

sorry ,the git proj is at /tmp/somegit , but If it is located in ~/somedir/somegit ,it works

@Zhengqbbb
Copy link
Owner

Thx u support. Have enjoy~ It will be awesome ❤️

@tomasky
Copy link
Author

tomasky commented Jun 28, 2022

but why /tmp dir not load ~/.czrc

@Zhengqbbb
Copy link
Owner

Zhengqbbb commented Jun 28, 2022

but why /tmp dir not load ~/.czrc

I guess you be using WSL Windows,
You can go to the ~ directory and use the pwd command.
Check the results, since I don't have a Windows computer, I guess I can't find back directory or unable to find system level directory since home root

@tomasky
Copy link
Author

tomasky commented Jun 28, 2022

No ,i use ubuntu 16 lts , 32bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants