-
Notifications
You must be signed in to change notification settings - Fork 152
feat:Add Go Modules Debug Build Flags #145
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
Conversation
Required to do IDE debugging of Go functions.
|
My local functional tests (which should be unrelated to my change) are failing in a way that seems unrelated, so watching AppVeyor closely. |
c2tarun
left a comment
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.
PR title to semantic messaging format ;)
| runtime_path = self.binaries[self.LANGUAGE].binary_path | ||
| cmd = [runtime_path, "build", "-o", output_path, source_dir_path] | ||
| cmd = [runtime_path, "build"] | ||
| if self.mode and self.mode.lower() == BuildMode.DEBUG: |
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.
Are we sure that BuildMode.DEBUG is always lower? I would suggest to make it BuildMode.DEBUG.lower() as well.
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.
Following a pattern from the .NET builder, so the aws_lambda_builders/workflow.py::BuildMode enum values are contracted to be lower case, but input is not.
When you update a test, try updating the appropriate code. This is why we have automated test harnesses.
Required to do IDE debugging of Go functions.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.