Skip to content

Commit

Permalink
Merge pull request #31 from Scalingo/build/go_1.22
Browse files Browse the repository at this point in the history
build: update Go from 1.20 to 1.22
  • Loading branch information
EtienneM authored Oct 2, 2024
2 parents d6e7782 + 4b0d842 commit 6f63cc5
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# v1.0.1 2020-11-18
# Changelog

## To Be Released

* build: update Go from 1.20 to 1.22

## v1.0.1 2020-11-18

* Update dependency to use github.com/Scalingo/go-utils/io as standalone module

# v1.0.0 2020-05-12
## v1.0.0 2020-05-12

* Ability to discard disk cache
* BREAKING CHANGE: order of argument is now matching io.Copy, destination becomes first
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# FS Sync
# FS Sync Library v1.0.1

`go-fssync` is a Go library which aims at syncing / copying one file tree to another in a clever way. A bit like the `rsync` tool:

Expand Down Expand Up @@ -55,3 +55,33 @@ You can try out the synchronization mechanisms with the command line tool provid
```sh
go run cmd/fssync/main.go [-no-cache=false] [-buffer-size=0] [-preserve-ownership=false] [-checksum=false] ./src ./dst
```

## Release a New Version

Bump new version number in:

- `CHANGELOG.md`
- `README.md`

Commit, tag and create a new release:

```sh
version="1.0.1"

git switch --create release/${version}
git add CHANGELOG.md README.md
git commit -m "Bump v${version}"
git push --set-upstream origin release/${version}
gh pr create --reviewer=EtienneM --title "$(git log -1 --pretty=%B)"
```

Once the pull request merged, you can tag the new release.

```sh
git tag v${version}
git push origin master v${version}
gh release create v${version}
```

The title of the release should be the version number and the text of the
release is the same as the changelog.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
test:
image: golang:1.20
image: golang:1.22
volumes:
- ./:/go/src/github.com/Scalingo/go-fssync
- ./_dev/go-cache:/root/.cache
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Scalingo/go-fssync

go 1.20
go 1.22

require (
github.com/Scalingo/go-utils/io v1.1.1
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ github.com/Scalingo/go-utils/io v1.1.1/go.mod h1:x5DpQaOaPJ0Nmkm5wRt6XpWc+8Zluls
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/guillermo/go.procmeminfo v0.0.0-20131127224636-be4355a9fb0e h1:/6/OurM62Ddm8CR8PveE0a+ql2mL+ycAhOwd563kpdg=
github.com/guillermo/go.procmeminfo v0.0.0-20131127224636-be4355a9fb0e/go.mod h1:TQrLAmkOSnZ4g1eFORtCfTEbFuVZD0Zm55vdnrilBaw=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down

0 comments on commit 6f63cc5

Please sign in to comment.