Commit Graph

19 Commits

Author SHA1 Message Date
Jo
3d5a43c294
chore(yay): bump version (#1949)
bump major
2023-03-07 21:04:06 +00:00
Jo
b8debd1ae7
chore(yay): fix small linting issues (#1885)
* replace context.TODO() in tests context.Background()

* remove mock TODOs

* prettier

* apply missing linting
2023-01-03 21:43:56 +00:00
Eng Zer Jun
83a257b16b
test: use T.TempDir to create temporary test directory (#1709)
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-11 09:30:54 +01:00
Дамјан Георгиевски
f7dbebcc2c
fix(exec): add --quiet to systemd-run (#1654)
* add --quiet to systemd-run

this will avoid the `Press ^] three times within 1s to disconnect TTY.` message.

it's mentioned in the systemd-run man page too:
```
--quiet, -q
    Suppresses additional informational output while running. This is particularly useful in combination with --pty when it will suppress the
    initial message explaining how to terminate the TTY connection.
```

* add --quiet to the tests

* add --quiet to TestABSPKGBUILDRepoExistsPerms too
2021-12-20 17:49:25 +01:00
jguer
81eeb8c495
fix(download): use git pull --rebase --autostash instead of --ff-only. fixes #1635 2021-12-12 19:05:48 +01:00
jguer
555d1ead95
chore(version): bump major version 2021-09-08 22:28:08 +02:00
jguer
adb74b9252 chore(su): prefer short form if 2021-09-07 00:41:36 +02:00
Eng Zer Jun
e43c712c84 refactor: move from io/ioutil to io and os package
The io/ioutil package has been deprecated in Go 1.16. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-08-26 15:17:47 +02:00
jguer
e231b2b02d chore(yay): modernize exec commands 2021-08-14 00:10:43 +02:00
jguer
95bc333a92 test(yay): port tests to parallel 2021-08-11 22:19:55 +02:00
jguer
cb4b57f6d8 chore(golangci): add new linters 2021-08-11 22:19:55 +02:00
jguer
08d1305ec5 feat(download): respect aur url settings and update deps 2021-08-11 22:19:55 +02:00
jguer
5c11c01d85 refactor(exe): move sudo loop into CmdBuilder 2021-08-08 21:02:35 +02:00
jguer
456d83ef51 fix(download): cloned reflects if package was pulled or cloned 2021-08-07 19:17:58 +02:00
jguer
4a515c4462 test(downloads): remove non reproducible tests 2021-08-05 10:11:54 +02:00
jguer
98378642bc test(download): add tests for repo downloading 2021-08-05 10:11:54 +02:00
jguer
413ad23abc chore(download): rename public functions 2021-08-05 10:11:54 +02:00
jguer
79b44fd544 feat(download): download PKGBUILD repos interface 2021-08-05 10:11:54 +02:00
jguer
afc72daba7
test(download): test pkgbuild fetching 2021-01-31 19:07:08 +01:00