Commit Graph
2819 Commits
Author SHA1 Message Date
Julio Lopez d5d150104f chore(build): upgrade to Go 1.20 (#2876) 2023-03-31 07:58:37 -07:00
Christoph AndersonandlupusA c624b8eece fix(general): Fixed ordering in function "isAbs" in ospath (#2850)
The special case (Windows) has to be checked before "filepath.IsAbs".
The test for internal\ospath now return success.

Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-31 04:19:14 +00:00
Jarek Kowalski 88f223c6cf fix(cli): fixed help formatting broken with recent upgrade to kingpin/v2 (#2868) 2023-03-30 01:32:28 +00:00
dependabot[bot] d8e6273ac9 build(deps): bump github.com/fatih/color from 1.14.1 to 1.15.0 (#2874)
Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.14.1 to 1.15.0.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](https://github.com/fatih/color/compare/v1.14.1...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/fatih/color
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 17:51:44 -07:00
dependabot[bot] 5c0b878de2 build(deps): bump go.uber.org/multierr from 1.10.0 to 1.11.0 (#2873)
Bumps [go.uber.org/multierr](https://github.com/uber-go/multierr) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/uber-go/multierr/releases)
- [Changelog](https://github.com/uber-go/multierr/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/multierr/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: go.uber.org/multierr
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 17:48:56 -07:00
Christoph Anderson 365f48423b docs(site): improved faq and kopiaignore section (#2864)
- Improved the wording in the FAQ section.
- Added the documentation on kopiaignore to the faqs.
- Added the faqs to the main menu
- Added a link the kopiaignore documentation in the features section
- Added a paragraph on incomplete snapshots in the faqs
2023-03-29 17:35:19 -07:00
dependabot[bot] 314af02fc4 build(deps): bump github.com/aws/aws-sdk-go from 1.44.207 to 1.44.232 (#2871) 2023-03-30 00:24:36 +00:00
dependabot[bot] 1660c900e2 build(deps): bump go.uber.org/multierr from 1.9.0 to 1.10.0 (#2829) 2023-03-29 01:48:47 +00:00
dependabot[bot] dabce4cc1c build(deps): bump google.golang.org/grpc from 1.53.0 to 1.54.0 (#2856) 2023-03-29 00:56:18 +00:00
dependabot[bot] 0c2a26bb2a build(deps): bump go.opentelemetry.io/otel/exporters/jaeger (#2867) 2023-03-29 00:30:56 +00:00
dependabot[bot] b6b44eadb1 build(deps): bump cloud.google.com/go/storage from 1.29.0 to 1.30.1 (#2866) 2023-03-29 00:26:55 +00:00
Julio Lopez f89fe39927 chore(robustness): use zero value for strings.Builder (#2863) 2023-03-28 09:46:29 -07:00
Julio Lopezanddependabot[bot] febb95262d build(deps): bump github.com/google/fswalker (#2860)
Bumps [github.com/google/fswalker](https://github.com/google/fswalker) from 0.2.1-0.20200214223026-f0e929ba4126 to 0.3.0.
- [Release notes](https://github.com/google/fswalker/releases)
- [Commits](https://github.com/google/fswalker/commits/v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/google/fswalker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 07:36:25 +00:00
Julio Lopez 7b44fd7213 chore(general): move test-only functions to _test.go file (#2859) 2023-03-28 05:55:31 +00:00
dependabot[bot] 5a25affd2a build(deps): bump actions/setup-go from 3 to 4 (#2841)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 04:45:19 +00:00
dependabot[bot] 34c3609f81 build(deps): bump github.com/golang/protobuf from 1.5.2 to 1.5.3 (#2828)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.5.2...v1.5.3)

---
updated-dependencies:
- dependency-name: github.com/golang/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 04:17:14 +00:00
cc7a413d0d fix(general): fix-up *Fault with lock (#2855)
Add concurrency safety for helper functions.

---

Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>
Co-authored-by: Ali Dowair <adowair@umich.edu>
Co-authored-by: Julio Lopez <1953782+julio-lopez@users.noreply.github.com>
2023-03-28 03:03:56 +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

https://github.com/rclone/rclone/commit/4444d2d102cc187f8cc4907f3e06611576c10a36#diff-3bfe93b28218b8e93a7480a5684d21ac566795a0fa8e540ec1bc6cbe7028439eR295

* build(deps): bumped rclone binary to 1.62.2
2023-03-28 01:55:13 +00:00
Julio Lopez a99e38c247 fix(lint): remove uses of deprecated rand.Read (#2858)
Lint fixes in preparation for moving to Go 1.20

Remove deprecated calls to `rand.Seed`
In Go 1.20 the default generator is seeded randomly at program startup,
which is the desired behavior for these tests.

Remove uses of deprecated rand.Read: replace with calls to rand.Uint64()

Remove deprecated uses of rand.Read in content manager tests and
S3 versioned tests.
Adds a concurrency-safe helpers to provide functionality similar to that
provided by `rand.Read(b []byte) (int, error)`
2023-03-28 01:44:09 +00:00
dependabot[bot] 98821b7b28 build(deps): bump github.com/minio/minio-go/v7 from 7.0.49 to 7.0.50 (#2857) 2023-03-28 00:23:09 +00:00
Aaron AlparandShikhar Mall c65613ccba feat(cli): ability to read repository status ... (#2799)
* fix spelling

* permissive index read

* fixup v1 permissive index

* fixups for lint

* trigger rebuild

* Update repo/local_config.go

Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>

* rename permissive read flag

* extend "permissive-read" rename

* hide permissive command-line flag

* syntax fixup

* fixup for test

* fixups for tests

* Update .golangci.yml

Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>

---------

Co-authored-by: Shikhar Mall <mall.shikhar.in@gmail.com>
2023-03-27 16:08:11 -07:00
ashmrtn 747baeebda feat(snapshots): Enable compression for StreamingFile entries (#2835)
* Enable compression for StreamingFile entries

Also take fs.Entry for helper that gets compression policy instead of
fs.File.

* Add simple test for compression on StreamingFiles

Just checks that the repo size is smaller than the size it would be if
compression wasn't enabled.
2023-03-27 10:12:20 -07:00
Ali Dowair c4d722d2c5 feat(cli): Make format upgrade command idempotent (#2824)
This commit changes the behavior of the command
`kopia repo upgrade begin...` to not fail (exit code 1) when the repository is already using the latest format version. Instead, a helpful message is output and the program exits with zero code. In effect the command becomes idempotent-successive upgrades would return the same exit code. Such an idempotent api is desirable, especially in cases where we build automation around format upgrades.

Before this change, an error code 1 is returned when upgrading a repository that is already up to date:

```
$ kopia repo status | grep "Format Version"
Format version:      3
$ kopia repo upgrade begin --upgrade-owner-id admin
[1] ERROR error setting the upgrade lock intent: repository is using version 3, and version 3 is the maximum
```

and after this change, a 0 code is returned:

```
$ kopia repo upgrade begin --upgrade-owner-id admin
[0] Repository format is already upto date.
```
2023-03-27 12:37:16 +03:00
Jarek Kowalski ca59ae3d0a chore(ui): update to latest htmlui (#2851) 2023-03-27 00:34:32 +00:00
Jarek Kowalski 07972b56cf fix(ci): fixed test race condition due to logging (#2852) 2023-03-26 17:05:12 -07:00
dependabot[bot] 088b825dc3 build(deps): bump go.opentelemetry.io/otel/sdk from 1.13.0 to 1.14.0 (#2837) 2023-03-26 19:58:04 +00:00
dependabot[bot] fbaba34d30 build(deps): bump go.opentelemetry.io/otel from 1.13.0 to 1.14.0 (#2826)
Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.13.0...v1.14.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-26 12:15:08 -07:00
Christoph AndersonandlupusA c8d6112aaa docs(site): added documentation on kopiaignore (#2844)
* Added a documentation and examples for kopiaignore files and patterns.

* Removed the quote signs for server-password and server-username in the example docker compose within the installation guide.

* Minor changes to the documentation. Adjusted the table with examples. Improved wording.

---------

Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-24 15:19:03 -07:00
lupusAandlupusA cc00388f6d Fixed broken links in the advanced sections. (#2843)
Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-20 23:21:27 -07:00
lupusAandlupusA 8459e1c0d4 docs(site): unified headings - created an outline within the advanced section (#2838)
* Unified the headings of the sub-sections within the "advanced" section. Created an outline for the "advanced" section. Changed the ordering of the advanced section to a more meaningful representation. Fixed a typo within the installation guide.

* Fixed a small typo in the outline of the advanced section.

---------

Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-20 20:52:10 -07:00
dependabot[bot] cd5de60c87 build(deps): bump github.com/chromedp/chromedp from 0.8.7 to 0.9.1 (#2836) 2023-03-17 00:23:27 +00:00
dependabot[bot] 90b606f5e5 build(deps): bump minimatch and electron-builder in /app (#2819)
Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.1.2 and updates ancestor dependency [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder). These dependencies need to be updated together.


Updates `minimatch` from 3.0.4 to 3.1.2
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

Updates `electron-builder` from 23.6.0 to 24.0.0
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/v24.0.0/packages/electron-builder)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
- dependency-name: electron-builder
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 22:11:14 -07:00
dependabot[bot] 3e5134c1cf build(deps): bump github.com/klauspost/compress from 1.15.15 to 1.16.3 (#2833)
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.15.15 to 1.16.3.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.15.15...v1.16.3)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 22:09:55 -07:00
dependabot[bot] 90a24f9629 build(deps): bump github.com/prometheus/common from 0.40.0 to 0.42.0 (#2827) 2023-03-15 00:25:15 +00:00
dependabot[bot] 99751c6a40 build(deps): bump google.golang.org/protobuf from 1.29.0 to 1.29.1 (#2825) 2023-03-14 23:38:01 +00:00
Julio Lopezanddependabot[bot] 3f663c4c4a build(deps): bump github.com/hanwen/go-fuse/v2 (#2821)
Bumps [github.com/hanwen/go-fuse/v2](https://github.com/hanwen/go-fuse) from 2.1.1-0.20220112183258-f57e95bda82d to 2.2.0.
- [Release notes](https://github.com/hanwen/go-fuse/releases)
- [Commits](https://github.com/hanwen/go-fuse/commits/v2.2.0)

---
updated-dependencies:
- dependency-name: github.com/hanwen/go-fuse/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-14 08:29:17 +00:00
dependabot[bot] 071b7d1f63 build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#2815)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-14 01:52:12 +00:00
dependabot[bot] 87dbc1688a build(deps): bump google.golang.org/protobuf from 1.28.1 to 1.29.0 (#2817) 2023-03-14 01:51:06 +00:00
dependabot[bot] bd147cc64f build(deps): bump golang.org/x/mod from 0.8.0 to 0.9.0 (#2816) 2023-03-14 01:06:29 +00:00
dependabot[bot] 3fc07daf8a build(deps): bump google.golang.org/api from 0.110.0 to 0.112.0 (#2818) 2023-03-14 00:23:53 +00:00
dependabot[bot] 4351749265 build(deps): bump golang.org/x/term from 0.5.0 to 0.6.0 (#2814) 2023-03-13 07:44:12 +00:00
Snyk bot e5584331c9 fix(deps): upgrade @fortawesome/fontawesome-common-types from 0.1.7 to 0.2.36 (#2703)
Snyk has created this PR to upgrade @fortawesome/fontawesome-common-types from 0.1.7 to 0.2.36.

See this package in npm:
https://www.npmjs.com/package/@fortawesome/fontawesome-common-types

See this project in Snyk:
https://app.snyk.io/org/ntolia/project/58424cd5-ee02-4c16-8df1-43129217353f?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-03-13 00:09:01 -07:00
Juerd Waalboer 3a13ebf518 docs(site): added control credentials to example (#2807)
- Added server control credentials to `kopia server start` example
- Reformatted `kopia server start` to avoid excessive horizontal scrolling
- Moved pre-v0.8 information to quoted notes to reduce confusion
2023-03-12 14:53:10 -07:00
Jarek Kowalski 91a3e9b4b0 fix(kopiaui): fixed '<starting up>' in the tray menu. (#2813)
The fix is to use `127.0.0.1` instead of `localhost` when starting the
server and polling for the server status.

This resolves an issue where KopiaUI can't connect to the server
which only listens on IPv4 localhost (127.0.0.1) but the Javascript
client prefers IPv6 (::1) and fails to connect.
2023-03-12 21:43:04 +00:00
lupusAandlupusA 95fbf5a266 docs(site): rephrased the section "Two Variants of Kopia" and corrected the outline to match the document. Added a docker-compose example to the "Docker Images" section. (#2812)
Co-authored-by: lupusA <lupuapps@gmail.com>
2023-03-12 20:23:47 +00:00
Jarek Kowalski e96efbddea fix(kopiaui): added missing entitlement for M1 build (#2809) 2023-03-12 11:09:40 -07:00
dependabot[bot] 0496ee8d95 build(deps): bump got and electron-builder in /app (#2808)
Removes [got](https://github.com/sindresorhus/got). It's no longer used after updating ancestor dependency [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder). These dependencies need to be updated together.


Removes `got`

Updates `electron-builder` from 23.3.3 to 23.6.0
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/v23.6.0/packages/electron-builder)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
- dependency-name: electron-builder
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-12 06:05:14 +00:00
dependabot[bot] 978bd26b9b build(deps-dev): bump electron from 19.0.8 to 23.1.3 in /app (#2805)
Bumps [electron](https://github.com/electron/electron) from 19.0.8 to 23.1.3.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v19.0.8...v23.1.3)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-12 05:20:18 +00:00
Jarek Kowalskianddependabot[bot] 1febe17ae7 chore(ci): sort go.mod as described in #2669 (#2806)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-12 00:50:34 +00:00
Jarek Kowalski 92291a61e1 feat(repository): added RepositoryWriter.ReplaceManifests (#2747)
This simplifies use cases where we intend to replace a manifest uniquely
identified by a set of labels with another one as is the case for
policies.

This helped fix annoying test flake on Windows where the clock is not
guaranteed to move forward when read in quick succession.

This is now passing on Windows:

```
$ go test -timeout 1000s ./internal/server -run TestSourceRefreshesAfterPolicy -count=1000
```
2023-03-12 00:44:28 +00:00