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

Enable usage as a normal go module. #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Enable usage as a normal go module. #17

wants to merge 2 commits into from

Conversation

jhchabran
Copy link

These changes enable to import codenotify as a go module and to use the
now exported Subscribers function to compute subscribers from Go code
rather than having to call the binary.

Other than a slight code reorganization to allow that, behavior remains
unchanged.

@jhchabran jhchabran marked this pull request as ready for review April 20, 2022 16:00
Dockerfile Outdated
Comment on lines 5 to 6
COPY go.mod go.sum *.go ./
COPY cmd/ ./cmd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
COPY go.mod go.sum *.go ./
COPY cmd/ ./cmd
COPY go.mod go.sum **/*.go ./

I think this works? Otherwise it might be easier to just do

Suggested change
COPY go.mod go.sum *.go ./
COPY cmd/ ./cmd
COPY . .

Copy link
Member

@bobheadxi bobheadxi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@unknwon
Copy link
Member

unknwon commented May 17, 2022

@jhchabran Saw this PR by chance, are you still working on getting this merged?

@jhchabran
Copy link
Author

@unknwon not right now as their is another dependent change before this gets merged, but if you need this for any reason, I can fix it and merge it, you tell me :)

@unknwon
Copy link
Member

unknwon commented May 17, 2022

No rush and keep your pace 👍 I was just checking.

@unknwon
Copy link
Member

unknwon commented Aug 31, 2022

Haha, checking again on this, I want to use it as normal Go module in another project.

These changes enable to import codenotify as a go module and to use the
now exported Subscribers function to compute subscribers from Go code
rather than having to call the binary.

Other than a slight code reorganization to allow that, behaviour remains
unchanged.
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.

4 participants