168 Commits

Author SHA1 Message Date
Julio Lopez
67ba03ac46 fix(general): prevent writing outside of installation target directory (#5003) 2025-11-17 21:22:58 -08:00
Julio Lopez
70f8d678d0 fix(general): handle errors closing writable descriptors (#4998) 2025-11-16 23:07:51 -08:00
Julio Lopez
b7f811cfc9 chore(ci): build kopia with -trimpath (#4983)
Rationale: move towards reproducible (hermetic) builds.

The `-trimpath` flag removes absolute file system paths
from the resulting executables.

- add `-trimpath` to `KOPIA_BUILD_FLAGS`
- add `-trimpath` to `goreleaser` config
- move `KOPIA_BUILD_*` var defs to `Makefile`
2025-11-13 10:31:28 -08:00
Julio Lopez
9c1aec59e4 docs(site): fix CLI command docs (#4979)
Also, minor updates for contrib docs
2025-11-12 17:19:34 -08:00
Nathan Baulch
657fda216a chore(ci): upgrade to golangci-lint 2.6.1 (#4973)
- upgrade to golangci-lint 2.6.1
- updates for gosec
- updates for govet
- updates for perfsprint
- updates modernize

Leaves out modernize:omitempty due to conflicts with tests
2025-11-11 21:27:10 -08:00
Nathan Baulch
557940c524 chore(ci): upgrade to golangci-lint v2.5.0 (#4931)
Upgrades golangci-lint to v2.5.0

Enables:
- wsl_v5

Disables:
- embeddedstructfieldcheck
- noinlineerr (not used in this codebase)
- noctx (temporarily)
- godot
- wsl (deprecated)

Co-authored-by: Julio Lopez <1953782+julio-lopez@users.noreply.github.com>
2025-11-11 12:37:07 -08:00
Julio Lopez
995e7fd893 refactor(general): modernize (#4903)
Applies the modernize changes for the following categories:

- mapsloop
- stringsseq
- stringscutprefix
- sortslice
2025-10-23 17:11:38 -07:00
Nathan Baulch
19d92613a6 chore(general): typos (#4659) 2025-06-10 17:24:14 -07:00
jlssmt
ccbdaf8d05 add sshfs to enable pull based backups (#4392) 2025-06-01 18:29:21 -07:00
Julio Lopez
dc1be13d85 chore(general): convenience make targets to install tools (#4616)
Convenience targets:
- install-gotestsum
- install-linter
2025-05-29 00:57:15 -07:00
Jarek Kowalski
2e16917518 chore(ci): enforce consistent formatting of KopiaUI code (#4586)
* chore(ci): enforce consistent formatting of KopiaUI code

* fix htmlui_changelog.sh

* fix
2025-05-20 22:33:54 -07:00
Jarek Kowalski
496f2d5d96 build(deps): updated all dependencies of KopiaUI app (#4580) 2025-05-18 18:56:17 -07:00
Jarek Kowalski
ba29f2cb00 fix(ci): fix HTMLUI changelog (#4579) 2025-05-17 18:53:50 -07:00
Jarek Kowalski
c4f38ea728 chore(ci): auto-generate clean htmlui changelog (#4578) 2025-05-17 18:17:34 -07:00
blenderfreaky
6cd728394d fix(site): escape flags with backticks (#4479)
* fix(site): escape flags with backticks

In the generated markdown docs, flags like `--foo` inside
help texts currently get pretty-printed as `–foo` with an em-dash.

This change applies backticks via a regex replacement, so that
they appear as `--foo` in the docs but remain as --foo in the
CLI output.

---------

Co-authored-by: Julio Lopez <1953782+julio-lopez@users.noreply.github.com>
2025-04-23 23:42:29 -07:00
Julio López
5150b92334 fix(build): correct command to get commit date (#4508)
Fixes issue introduced in #4506
2025-04-16 23:14:25 -07:00
Julio López
eb2e301b73 chore(ci): utc commit date (#4506) 2025-04-16 23:06:30 -07:00
Matthieu MOREL
675e958877 chore(ci): bump golangci-lint to v2.1.2 (#4500)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-04-15 22:49:13 -07:00
Jarek Kowalski
83c8d0b99c chore(ci): upgrade Go to 1.23 (#4248)
* chore(ci): upgrade Go to 1.23.3
* also upgrade checklocks
* specify Go toolchain version in go.mod

---------

Co-authored-by: Julio López <1953782+julio-lopez@users.noreply.github.com>
2025-01-23 21:21:30 -08:00
Jarek Kowalski
b60cac4860 fix(cli): fixed v0.18.0 failures using v0.17.0-generated config (#4255)
This was caused by the client using key derivation algorithm
from a config file (which did not have it when it was generated
using old version of Kopia).

Fixes #4254
2024-11-17 10:15:00 -08:00
Jarek Kowalski
68c5308e4e chore(ci): use 'npm ci' when building on CI (#4253) 2024-11-16 14:09:48 -08:00
Jarek Kowalski
eb1cf64c27 chore(ci): upgraded linter to 1.62.0 (#4250) 2024-11-16 07:16:50 -08:00
Jarek Kowalski
91d00e8256 feat(providers): upgraded rclone to 1.68.2, fixed Google Drive rclone compatibility (#4249)
* chore(ci): upgrade rclone to 1.68.2

* fix(providers): fixed Google Drive rclone compatibility
2024-11-15 20:02:08 -08:00
Julio López
961a39039b refactor(general): use errors.New where appropriate (#4160)
Replaces 'errors.Errorf\("([^"]+)"\)' => 'errors.New("\1")'
2024-10-05 19:05:00 -07:00
Jarek Kowalski
ac446a2d16 chore(ci): upgraded linter to 1.60.3 (#4086)
* silenced several 'gosec' findings
2024-09-03 21:29:56 -07:00
Jarek Kowalski
ed3268b469 feat(general): upgraded rclone to 1.67 in the Docker image (#3995) 2024-07-22 08:37:39 -07:00
Jarek Kowalski
d9fd912c8d chore(ci): upgrade NodeJS to 20.15.1 LTS (#3993) 2024-07-21 11:27:21 -07:00
Jarek Kowalski
c7206800ab chore(ci): fix RPM publishing (#3971) 2024-07-11 07:13:39 -07:00
Jarek Kowalski
fcb8197f3f chore(ci): upgraded linter to 1.59.0 (#3883) 2024-05-29 20:31:57 -07:00
Jarek Kowalski
09415e0c7d chore(ci): upgraded to go 1.22 (#3746)
Upgrades go to 1.22 and switches to new-style for loops

---------

Co-authored-by: Julio López <1953782+julio-lopez@users.noreply.github.com>
2024-04-08 09:52:47 -07:00
Jarek Kowalski
7278f570e2 chore(ci): upgraded linter to 1.57.1 (#3753) 2024-03-25 22:20:38 -07:00
Jarek Kowalski
29cd545c33 chore(ci): upgrade linter to 1.56.2 (#3714) 2024-03-09 10:39:11 -08:00
Jarek Kowalski
a8e4d50600 build(deps): upgraded linter to v1.55.2, fixed warnings (#3611)
* build(deps): upgraded linter to v1.55.2, fixed warnings

* removed unsafe hacks with better equivalents

* test fixes
2024-02-02 23:34:34 -08:00
Christoph Anderson
7b89fe173c Removed summary in command section (#3590)
Co-authored-by: lupusA <lupuapps@gmail.com>
2024-01-26 11:06:24 -08:00
Julio Lopez
7a0a68ecc1 chore(ci): upgrade gotestsum to 1.11.0 (#3534)
It seems that version 1.10.0 is no longer available for some platforms,
such as Windows.

Release notes:

https://github.com/gotestyourself/gotestsum/releases/tag/v1.11.0
2023-12-21 16:27:44 -08:00
Jarek Kowalski
916daf0a4f chore(ci): auto-delete old RPM and DEB packages (#3310)
This was previously done in `unstable` track, now doing it everywhere.
At the same time bumped the count 2=>3.
2023-09-16 12:16:50 -07:00
Jarek Kowalski
64a0df6f4e fix(ui): changed default tab to Snapshots (#3308) 2023-09-16 10:01:13 -07:00
Jarek Kowalski
abb5922085 chore(ci): switched back to LTS version of Ubuntu for Docker image (#3295) 2023-09-12 22:32:27 -07:00
Jarek Kowalski
20f2900eee chore(ci): upgrade rclone to 1.63.1 (#3278) 2023-09-06 20:14:39 -07:00
Jarek Kowalski
af7b97f70a chore(ci): added exponential back-off to gettool (#3267) 2023-09-04 09:07:48 -07:00
Jarek Kowalski
1120e4f629 chore(ci): reenable check-locks after the fix was merged upstream (#3245) 2023-08-22 19:41:03 -07:00
Jarek Kowalski
a12f81bb6f chore(ci): upgraded linter to 1.54.0 (#3239) 2023-08-20 17:00:32 -07:00
Redge
0d2a7c83a0 Update Dockerfile to install tzdata (#3191)
This patch the issue #2311 
The package tzdata is missing in the Docker image.
2023-08-04 20:37:14 -07:00
Jarek Kowalski
3eef67d2dc chore(ci): bump gotestsum to v1.10.0 (#3083) 2023-06-18 13:26:24 -07:00
Jarek Kowalski
cbc66f936d chore(ci): upgraded linter to 1.53.3 (#3079)
* chore(ci): upgraded linter to 1.53.3

This flagged a bunch of unused parameters, so the PR is larger than
usual, but 99% mechanical.

* separate lint CI task

* run Lint in separate CI
2023-06-18 13:26:01 -07:00
Jarek Kowalski
5cf54906ec chore(site): upgraded site to latest hugo and removed vendored files (#3078)
* chore(site): upgraded site to latest hugo and removed vendored files

This switches to using github.com/google/docsy as a Hugo module,
so we don't need to vendor the theme anymore or its dependencies.

* layout

* more style, edit MD support

* style

* style

* fixed linter errors

* update text
2023-06-18 11:41:01 -07:00
Kopia Builder [bot]
7ce65add79 build(deps): switch to ubuntu:kinetic in tools/docker/Dockerfile to reduce vulnerabilities (#3076)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU2204-LIBCAP2-5538282
- https://snyk.io/vuln/SNYK-UBUNTU2204-LIBCAP2-5538296
- https://snyk.io/vuln/SNYK-UBUNTU2204-NCURSES-5423142
- https://snyk.io/vuln/SNYK-UBUNTU2204-OPENSSL-5661537
- https://snyk.io/vuln/SNYK-UBUNTU2204-PERL-5499877

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-06-18 11:22:25 -07:00
Julio Lopez
aabf183cca Revert "build(tests): fix mc installation (#2910)" (#2912)
This reverts commit cb2d117.

The issue was fixed upstream in minio/mc#4541

Fixes #2908
2023-04-10 16:00:44 +00:00
Julio Lopez
cb2d117533 build(tests): fix mc installation (#2910) 2023-04-10 01:36:53 +00:00
YFdyh000
fed807f20e fix(repository): fixed connect broken since rclone v1.61.0 (#2853)
* fix(repository): fixed connect broken since rclone v1.61.0

4444d2d102 (diff-3bfe93b28218b8e93a7480a5684d21ac566795a0fa8e540ec1bc6cbe7028439eR295)

* build(deps): bumped rclone binary to 1.62.2
2023-03-28 01:55:13 +00:00