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

fix: version cannot be displayed in docker image #2993

Closed
wants to merge 1 commit into from

Conversation

seeleclover
Copy link

@seeleclover seeleclover commented Jun 5, 2024

fix: #2981

I think this interface should determine which method to use to obtain the version based on the runmode in conf/app.conf. If it is dev, then obtain the version through Git History; If it is prod, then obtain the version through version_info.txt.

If users run Casdoor through compilation and in Production Mode, they should be required to generate version_info.txt after go build. I also create a PR in the Git repository of the Casdoor Document.

@casbin-bot
Copy link
Contributor

@tangyang9464 @imp2002 please review

@CLAassistant
Copy link

CLAassistant commented Jun 5, 2024

CLA assistant check
All committers have signed the CLA.

@hsluoyz
Copy link
Member

hsluoyz commented Jun 5, 2024

"runmode" is mostly useless, we don't use it in such scenario.

@hsluoyz hsluoyz closed this Jun 5, 2024
@hsluoyz
Copy link
Member

hsluoyz commented Jun 5, 2024

@seeleclover as an advice, discuss with the community first before making a PR, to save your time

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

Successfully merging this pull request may close these issues.

[bug] version cannot be displayed in all-in-one docker image
4 participants