-
Notifications
You must be signed in to change notification settings - Fork 15
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
deploye: add release build config #267
Conversation
internal/core/community.go
Outdated
configFile := "" | ||
flag.StringVar(&configFile, "config", "", "Path to the config file") | ||
flag.Parse() | ||
godotenv.Load(configFile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golangci-lint] Error return value of godotenv.Load
is not checked (errcheck)
If you have any questions about this comment, feel free to raise an issue here:
docs/sql/database-init.sql
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to dump sql from mysql.
internal/core/community.go
Outdated
func init() { | ||
configFile := "" | ||
flag.StringVar(&configFile, "config", "", "Path to the config file") | ||
flag.Parse() | ||
godotenv.Load(configFile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need it, autoload
will autoload .env
in same dir.
@LiusCraft: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
cmd/gopcomm/gop_autogen.go
Outdated
community *core.Community | ||
trans *translation.Engine | ||
} | ||
//line cmd/gopcomm/community_yap.gox:30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[gofmt] Is your code not properly formatted? Here are some suggestions below
//line cmd/gopcomm/community_yap.gox:30 |
If you have any questions about this comment, feel free to raise an issue here:
internal/core/community.go
Outdated
@@ -160,6 +165,14 @@ type Translation struct { | |||
VideoTaskCache *VideoTaskCache | |||
} | |||
|
|||
func init() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We parse config from gox entry file.
@LiusCraft: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
The PR environment is ready, please check the PR environment [Attention]: This environment will be automatically cleaned up after 6 hours, please make sure to test it in time. If you have any questions, please contact the author of the PR or the community team. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.