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

feat:Add Go Modules Debug Build Flags #145

Merged
merged 4 commits into from
Jan 21, 2020
Merged

Conversation

awood45
Copy link
Member

@awood45 awood45 commented Jan 20, 2020

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.

Required to do IDE debugging of Go functions.
@awood45 awood45 requested a review from jfuss January 20, 2020 22:43
@awood45
Copy link
Member Author

awood45 commented Jan 20, 2020

My local functional tests (which should be unrelated to my change) are failing in a way that seems unrelated, so watching AppVeyor closely.

Copy link

@c2tarun c2tarun left a 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 ;)

@@ -44,7 +46,11 @@ def build(self, source_dir_path, output_path):
env.update(self.osutils.environ)
env.update({"GOOS": "linux", "GOARCH": "amd64"})
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:
Copy link

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.

Copy link
Member Author

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.

@c2tarun c2tarun self-requested a review January 20, 2020 22:51
c2tarun
c2tarun previously approved these changes Jan 20, 2020
jfuss
jfuss previously approved these changes Jan 21, 2020
@awood45 awood45 dismissed stale reviews from jfuss and c2tarun via feb8155 January 21, 2020 17:46
When you update a test, try updating the appropriate code. This is why
we have automated test harnesses.
@awood45 awood45 changed the title Add Go Modules Debug Build Flags feat:Add Go Modules Debug Build Flags Jan 21, 2020
@awood45 awood45 merged commit 1e63b82 into aws:develop Jan 21, 2020
@awood45 awood45 deleted the go-mod-debugging branch January 21, 2020 18:28
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.

3 participants