这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Apr 29, 2023

To resolve issue #212 I have done the following:

  • First adjusted all references of docker-compose to docker compose (docker compose v2 does not use a dash anymore).
  • Created a new docker image with docker build -t offen/docker-volume-backup:shoutrrr0.6 --no-cache .
  • Ran all tests with cd test && ./test.sh shoutrrr0.6.

After all tests completed successfully I adjusted the shoutrrr version.

  • Update shoutrrr to 0.7.1 with go get github.com/containrrr/shoutrrr@v0.7.1
  • Cleaned up modules with go mod tidy (this seemed necessary as otherwise the docker image would not build with a go error about a missing go.sum entry)
  • Cleaned up all things docker: docker image prune -af && docker network prune -f && docker volume prune -af && docker container prune -f
    ⚠️ I don't have anything else running docker-wise so for me these commands were fine, but this cleans ALL non-running volumes as well, which might be very undesireable ⚠️
  • Created a new docker image with docker build -t offen/docker-volume-backup:shoutrrr0.7 --no-cache .
  • Ran all tests with cd test && ./test.sh shoutrrr0.7.

All tests completed successfully.

Note: I have 0 experience using Go, and very little experience making pull requests, so my apologies in advance if I am not doing this by the book or have certain oversights. Feel free to reject my pull-request in that case of re-use it in your own code.

Copy link
Member

@m90 m90 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this. Have you been able to find release notes for version 0.7 and checked whether they contain user-facing changes?

@@ -1,5 +1,186 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
Copy link
Member

Choose a reason for hiding this comment

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

Most of these added lines are not needed. Can you try running go mod tidy at the root level of the repository and see if it removes lines from go.sum again?

Copy link
Author

Choose a reason for hiding this comment

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

I am running go mod tidy at the root level (i.e. where the README.md, go.mod, etc... files live) and there is no changes made. My go version is: go version go1.20.3 linux/amd64.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if this is an issue with Go or with the library. A go.sum file ideally only contains a single entry per dependency as only of them will be used (and checked). I will try to find out why that happens as I'd like to avoid adding so much noise.

Copy link
Author

@ghost ghost Apr 29, 2023

Choose a reason for hiding this comment

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

I don't understand this either. I did check, the large number of go.sum difference occur after I run the command go get github.com/containrrr/shoutrrr@v0.7.1 or go get -u github.com/containrrr/shoutrrr. The command go mod tidy is not the one causing this.

Copy link
Member

Choose a reason for hiding this comment

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

Seems like it is expected, although I don't fully understand what it's good for. It's noisy, but it won't be included in the build, so I guess it's good to go like this.

@m90
Copy link
Member

m90 commented Apr 29, 2023

Could you rebase your branch (or resolve the merge conflicts otherwise) so that CI can run tests on this PR?

@ghost ghost marked this pull request as draft April 29, 2023 14:40
@ghost
Copy link
Author

ghost commented Apr 29, 2023

Have you been able to find release notes for version 0.7 and checked whether they contain user-facing changes?

These are the changes I found. As mentioned I have 0 go experience, so I don't know if these are user-facing changes:

v0.6.1 added this: containrrr/shoutrrr@357c766
v0.7.0 added this: containrrr/shoutrrr@4094064
v0.7.1 added this: containrrr/shoutrrr@2e14d73

Of those changes I can only imagine the v0.6.1 changes have some effect due to changed function argument keywords.

@ghost ghost marked this pull request as ready for review April 29, 2023 14:44
@m90
Copy link
Member

m90 commented Apr 29, 2023

I think there are even more changes across these versions, but their changelog seems incomplete.

It seems there are 29 commits even containrrr/shoutrrr@v0.6.0...v0.7.1 which I'll have a quick look at.

@m90 m90 merged commit 07afa53 into offen:main Apr 29, 2023
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.

1 participant