-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: main
Are you sure you want to change the base?
Conversation
Dockerfile
Outdated
COPY go.mod go.sum *.go ./ | ||
COPY cmd/ ./cmd |
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.
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
COPY go.mod go.sum *.go ./ | |
COPY cmd/ ./cmd | |
COPY . . |
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.
@jhchabran Saw this PR by chance, are you still working on getting this merged? |
@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 :) |
No rush and keep your pace 👍 I was just checking. |
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.
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.