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: Go replace #1693

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

heyanlong
Copy link

Description

Add a new option for Golang runner to fix the incompatibility between local running and AWS.

You can use sls offline start --stage local --goReplace bin=cmd to tell the runner how to find source files.

How to work?

functions:
  hello:
    handler: bin/hello  # <------- it will automatically replace here with cmd/hello/main.go
    events:
      - httpApi:
          path: /hello
          method: get

#1644 #1358

@heyanlong heyanlong changed the title Go replace feat: Go replace May 31, 2023
@daniel0707
Copy link
Contributor

I will read up on the Go issues and see if this is the way to go, or is there a better change to make this compliant with AWS.

@adherb
Copy link

adherb commented Aug 26, 2023

Are there any updates on this?

@DorianMazur
Copy link
Collaborator

@heyanlong I don't think this is a right solution. We should take a closer look at why this doesn't work with the handler configuration that works on AWS.

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.

None yet

4 participants