20 Commits
Author SHA1 Message Date
dependabot[bot]andMajd Alfhaily f3c9076ff0 Bump golang.org/x/net from 0.23.0 to 0.33.0 (#334)
* Bump golang.org/x/net from 0.23.0 to 0.33.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.33.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Fix linting errors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Majd Alfhaily <majd@alfhaily.me>
2025-01-20 00:00:00 +01:00
Max 8a23d6fadd Fix authentication (#316)
login: increment 'attempt' while following redirects

Apple has introduced some dynamic GET parameters into their
redirects, forcing us to use the main domain ( no `p71-`
and such prefixes ) to obtain those parameters.

However, when following such redirects, we shall also increment
the `attempt` parameter (something that was hard-coded before).
2024-12-07 23:56:04 +01:00
guangwu 63ee6fc6a4 Fix closing response body (#271) 2024-05-01 01:21:33 +02:00
Majd Alfhaily c8624b26d5 Update Go dependencies (#257)
* Update Go dependencies
* Replace github.com/golang/mock/gomock with go.uber.org/mock/gomock
2024-01-20 00:30:26 +01:00
Majd Alfhaily 67e557e9a7 Add golangci-lint linter (#188) 2023-05-27 21:21:13 +00:00
Majd Alfhaily bf33e0d1c4 Improve tests for http package (#187) 2023-05-27 20:03:29 +00:00
Majd Alfhaily 95c3aa6629 Refactor API interfaces (#185)
- Move logging to command level.
- Simplify and unify interfaces for `appstore` package.
- Move sinf replication from "Download" API to "ReplicateSinf" API.
- Handle retries and command specific logic in the command level.
- Rename "Info" API to "AccountInfo".
2023-05-27 18:48:22 +02:00
ViRb3 fbd9d74729 Disable client timeout (#157) 2023-02-18 16:31:49 +01:00
ViRb3 8d2467491e Always apply user agent (#155) 2023-02-16 21:35:06 +01:00
Majd Alfhaily 2f154ad4f9 Disable timeout for downloading files (#123) 2022-12-07 17:46:07 +00:00
Majd Alfhaily 1a71cf89b4 Unify error names 2022-12-05 18:46:02 +01:00
Majd Alfhaily 5d6e83c2e9 Pass structs as args 2022-12-05 18:46:02 +01:00
Majd Alfhaily 0e57952e06 Increase test coverage for http package 2022-12-05 18:46:02 +01:00
Majd Alfhaily 12db867c54 Implement appstore download logic 2022-12-05 18:46:02 +01:00
Majd Alfhaily d5c4f88533 Automatically renew credentials when needed 2022-12-05 18:46:02 +01:00
Majd Alfhaily eb42a63845 Implement appstore search and lookup logic 2022-12-05 18:46:02 +01:00
Majd Alfhaily b73de7cd88 Improve testability 2022-12-05 18:46:02 +01:00
Majd Alfhaily d913b16c55 Implement keychain 2022-12-05 18:46:02 +01:00
Majd Alfhaily 915c70dcfa Implement HTTP client 2022-12-05 18:46:02 +01:00
Majd Alfhaily 5e06154ccb Add Go project skeleton 2022-12-05 18:46:02 +01:00