509 Commits

Author SHA1 Message Date
Shengqi Chen
033aa60540
Implement mirror.success_exit_codes and global.dangerous_global_success_exit_codes
Signed-off-by: Harry Chen <i@harrychen.xyz>
2025-02-28 14:43:51 +08:00
Shengqi Chen
d2b3e731bf
Fix numerous lint issues
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-02-27 22:42:49 +08:00
Shengqi Chen
c01de06ac3
Bump to v0.9.2
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
v0.9.2
2025-02-27 22:22:06 +08:00
Shengqi Chen
ece3e3d9e3
ci: use go 1.23
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-02-27 22:15:22 +08:00
Shengqi Chen
0a00097301
Run go get -u
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-02-27 22:13:53 +08:00
Shengqi Chen
245a8bfc3f
Merge pull request #208 from tuna/rsync-opts
More configuration options for rsync
2025-02-27 22:07:37 +08:00
Harry Chen
a64557b86d
Implement global.rsync_options (fixes #206)
Signed-off-by: Harry Chen <i@harrychen.xyz>
2025-02-27 17:37:22 +08:00
Harry Chen
27e4307375
Implement rsync_override_only in mirrorConfig
Signed-off-by: Harry Chen <i@harrychen.xyz>
2025-02-27 16:45:43 +08:00
Shengqi Chen
ad97ef8421
Bump to v0.9.1
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
v0.9.1
2025-01-12 16:15:02 +08:00
Shengqi Chen
748f276d49
Merge pull request #205 from tuna/test/ci
Fix unit tests in CI
2025-01-12 16:14:16 +08:00
Shengqi Chen
0ebfc58126
ci: fix wrong input coverage filename
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-12 16:04:30 +08:00
Shengqi Chen
ab8d1c2120
remove all cmd source files from coverage, make shanker happy
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-12 15:55:20 +08:00
Shengqi Chen
559f5705f6
ci: rename all coverage files to .gcov, ignore them in git
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-12 15:51:20 +08:00
Shengqi Chen
f8d7ea1828
ci: limit branches to master to avoid duplicated runs
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-12 15:45:57 +08:00
Shengqi Chen
b4ca6f4c1e
Run go get -u
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-12 15:19:32 +08:00
Miao Wang
113df44f19 cgroup: upgrade to containerd/cgroup/v3 2025-01-12 04:07:01 +08:00
Miao Wang
e903c644f2 Fix CI test for cgroupv1
The test binary is complied on ubuntu 22.04, linked with higher version
of glibc than debian bullseye integrates after upgrading to golang 1.22

Solve this problem by disabling cgo.
2025-01-12 04:07:00 +08:00
Shengqi Chen
181fddb87c
ci: update release.yml
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
v0.9.0
2025-01-11 16:42:56 +08:00
Shengqi Chen
a6a03decf0
doc: update README and bump to v0.9.0
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 16:14:44 +08:00
Shengqi Chen
5fb63e119c
ci: compile for more architectures when releasing
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 16:12:14 +08:00
Shengqi Chen
95c4d54ee2
Replace boltdb with bbolt, fix #173, close #174
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 16:06:35 +08:00
Shengqi Chen
ef32197fef
Run go fmt
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 16:00:34 +08:00
Shengqi Chen
99c7ab6b65
Fix more linter issues
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 15:53:42 +08:00
Shengqi Chen
ab416f6545
Run golangci-lint run --fix
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 15:39:31 +08:00
Shengqi Chen
15e87a5f48
test: add RWLock to fix data race in MockDBAdapter
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 15:37:42 +08:00
Shengqi Chen
3ad551f73d
ci: fix go version to 1.22
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 15:16:57 +08:00
Shengqi Chen
3562907af9
Makefile: add clean PHONY target
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 15:15:42 +08:00
Shengqi Chen
6d50645ddb
Upgrade dependencies
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 15:12:39 +08:00
Shengqi Chen
95ba9586e0
ci: use stable go version, enable test on pr and dispatch
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 15:03:31 +08:00
Shengqi Chen
c73becc0f1
chore: fix typo, close #203
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 14:59:50 +08:00
Miao Wang
6132446bc7 Merge remote-tracking branch 'origin/pull/200' 2024-09-26 14:18:07 +08:00
dependabot[bot]
bfcbfe75bc
Bump github.com/moby/moby
Bumps [github.com/moby/moby](https://github.com/moby/moby) from 20.10.20+incompatible to 24.0.9+incompatible.
- [Release notes](https://github.com/moby/moby/releases)
- [Commits](https://github.com/moby/moby/compare/v20.10.20...v24.0.9)

---
updated-dependencies:
- dependency-name: github.com/moby/moby
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 05:56:23 +00:00
Miao Wang
fcb8dd5f3a ci: bump version 2024-09-26 13:48:01 +08:00
dependabot[bot]
938f67c7b4
Bump github.com/gin-gonic/gin from 1.7.7 to 1.9.1 (#192)
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.7.7 to 1.9.1.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gin-gonic/gin/compare/v1.7.7...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-03 20:05:00 +08:00
Miao Wang
dca04a3220 Merge remote-tracking branch 'origin/pull/198' 2024-04-03 19:52:38 +08:00
Arnaud Rebillout
c45974c0bf Update debian stage1 rsync options
Updated almost 3 years ago, cf.
https://salsa.debian.org/mirror-team/archvsync/-/merge_requests/2

The ref mentioned in the code is still good, so you can compare this MR
with what's currently in ftpsync:
https://salsa.debian.org/mirror-team/archvsync/-/blob/master/bin/ftpsync#L431

Thanks
2024-04-03 18:17:03 +07:00
dependabot[bot]
755c87761d
Bump golang.org/x/net from 0.0.0-20201224014010-6772e930b67b to 0.7.0 (#187)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20201224014010-6772e930b67b to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-19 01:54:37 +08:00
dependabot[bot]
7bc3e8f193
Bump golang.org/x/sys from 0.0.0-20210426230700-d19ff857e887 to 0.1.0 (#188)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20210426230700-d19ff857e887 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-19 01:42:12 +08:00
Miao Wang
8ddcc46255 bump to go 1.18 2023-04-19 01:27:20 +08:00
dependabot[bot]
37b15d157a
Bump github.com/moby/moby (#177)
Bumps [github.com/moby/moby](https://github.com/moby/moby) from 20.10.7+incompatible to 20.10.20+incompatible.
- [Release notes](https://github.com/moby/moby/releases)
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moby/moby/compare/v20.10.7...v20.10.20)

---
updated-dependencies:
- dependency-name: github.com/moby/moby
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-19 01:14:08 +08:00
dependabot[bot]
f2b22d059c
Bump github.com/gin-gonic/gin from 1.7.0 to 1.7.7 (#185)
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.7.0 to 1.7.7.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gin-gonic/gin/compare/v1.7.0...v1.7.7)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-19 01:13:28 +08:00
Miao Wang
45099fc7d3 Fix config_diff panics when old config or new config is empty
Fixes #190
2023-04-19 00:53:45 +08:00
Miao Wang
c3b742c2a8 move set up go after checkout 2023-04-19 00:53:45 +08:00
Miao Wang
68a3149e8d update actions to latest version 2023-04-19 00:53:45 +08:00
Miao Wang
b372744640 update ci script
ubuntu 22.04 use unified cgroup hierarchy, so we test cgroupv1 support
in uml
2023-04-19 00:53:33 +08:00
Miao Wang
4007bb2e4d Add unit test for config_diff when old or new is empty 2023-04-18 19:59:10 +08:00
Zenithal
bca49abd3c doc: increase default interval
Ref to https://github.com/tuna/issues/issues/1649
2023-01-18 13:47:02 +08:00
Miao Wang
60f92ceebb
Fix incomplete usage on tunasynctl set-size 2022-12-12 00:14:05 +08:00
Miao Wang
c07aaffe65 Merge branch 'cgroupv2', and bump version to v0.8.0
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
v0.8.0
2021-09-02 22:22:26 +08:00
Miao Wang
1804a31b6a Bugfix change the order of options in 2f9e96a
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
2021-09-02 22:19:05 +08:00