Skip to content

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
Contributor

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
Contributor

unknwon commented May 17, 2022

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

@unknwon
Copy link
Contributor

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.

5 participants