Commit graph

38 commits

Author SHA1 Message Date
Kirill Motkov 0771ded99b
Refactor AURPKGBUILDRepos and Fix Localization Command in Makefile (#2313)
* optimize mutex usage and logging in AURPKGBUILDRepos function

* fix localization script

Fix localization script Makefile by adding missing semicolon and --no-translator flag
2023-11-20 16:58:20 +01:00
Jo e60ccdf8b7
Fix image recursive build (#2280)
* fix image recursive build

* add test fixes

* disable buildvcs

* fix integration
2023-09-15 11:17:18 +02:00
Jo 8916cd174b
refactor(yay): move cfg inside of runtime (#2259)
* rework relationship between runtime and cfg

* separate runtime from cfg

* simplify instantiation logic

* move installer to appropriate package

* move operator to sync package

* add tests for srcinfo service

* consolidate srcinfo service in sync

* add logger to srcinfo

* add logger to preparer

* remove unused text functions

* remove remaining text.* from srcinfo

* remove global logger parts

* remove global org method exports

* remove global logger

* move text->input

* add rule to prevent fmt.Print

* update golangci go version

* remove outdated FAQs

* remove outdated FAQs
2023-08-06 21:39:41 +02:00
smolx 6dd7933fbe
Fix handling targets with specified db (#2218)
* Fix handling targets with specified db

Handle it in a similar way to handling targets with unspecified db.

Also refactored GraphSyncPkg method to make stuff more DRY.

* update go-mod
2023-07-06 06:53:46 +00:00
moson-mo 1335e9b4e0
fix(pkgbuild): convert package name for gitlab URLs (#2191)
Convert package names to gitlab repo names

Signed-off-by: moson-mo <mo-son@mailbox.org>
2023-05-25 11:00:33 +02:00
Jo fdcf6ef664
ci(yay): add integration test framework (#2178)
* add integration test framework

* fix integration tests

* fix integration tests
2023-05-22 21:38:02 +00:00
Jo 39f0d4e9a1
chore(yay): remove unused constant (#2179)
remove unused constant

Co-authored-by: christian-heusel <christian@heusel.eu>
2023-05-22 20:59:30 +00:00
Jo bd79057fd9
feat(pkgbuild): use gitlab git repo for retrieving PKGBUILDs (#2177)
use gitlab git repo for retrieving PKGBUILDs
2023-05-22 20:22:49 +00:00
Jo 3d5a43c294
chore(yay): bump version (#1949)
bump major
2023-03-07 21:04:06 +00:00
Jo fad26c078d
fix(getpkgbuild): check AUR pkgs exist before GetPKGBUILD (#1921)
check AUR pkgs exist before GetPKGBUILD
2023-02-20 23:58:13 +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 f42cbde6db refactor(parser): unify atleast modes 2021-08-09 13:32:55 +02:00
jguer 5c11c01d85 refactor(exe): move sudo loop into CmdBuilder 2021-08-08 21:02:35 +02:00
jguer 1a2e5b9529 refactor(settings): move args to own package to allow pacman cmd builder 2021-08-08 17:45:07 +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 ab902e9cc6 chore(vcs): port VCS to download package 2021-08-05 10:11:54 +02:00
jguer b8641256ab chore(download): rename PKGBUILD function to match package 2021-08-05 10:11:54 +02:00
jguer 2ed099a263 chore(download): unify filtering logic between commands 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 20d5fd406f fix(download): fix -Gp for repository packages 2021-07-26 09:07:27 +02:00
Oliver Mangold 4a9319920b fixing URLs for ABS after upstream change from git.archlinux.org to github 2021-07-13 18:39:18 +02:00
jguer d1a6ead81c style(deps): reduce scope where possible 2021-03-17 23:18:44 +01:00
Jannis M. Hoffmann 1a8ee2012d removed alpm dependency from download 2021-03-12 18:11:30 +01:00
jguer afc72daba7
test(download): test pkgbuild fetching 2021-01-31 19:07:08 +01:00
jguer ee3c51f6f2
feat(pkgbuild): extract logic 2021-01-31 19:07:08 +01:00