Commit Graph

1520 Commits

Author SHA1 Message Date
Anna
568dc4a15e
Merge pull request #1071 from nicoduesing/patch-2
more selfexplaining upgrade process
2019-10-19 23:48:07 +01:00
nicoduesing
6bca3246c8
more selfexplaining upgrade process
At least for me it was not very intuitive what I have to do here. Maybe because I overread "not" and also because I liked to upgrade all packages. That was not explained ether, so I didn't consider to just press enter. This hopefully makes it a little bit more understandable.
2019-10-20 00:40:48 +02:00
morganamilo
bbeef9d237
Move abs cloning to it's down directory
As mentioned it is possible for stuff to clash in cache if you were to
-G a package from the repos, then -S an AUR package by the same name. To
avoid that give abs cloning its own directory.

It is still possible for a clash to occur if there was a package named
abs. However currently there is not.

Idealy the aur cloning would also get it's own subdir, but that will
invalidate everyone's cache so leaving it for a time with more breaking
changes.

This is also under its own config option so that AURDEST does not
interfere with it.
2019-10-18 08:48:58 +01:00
morganamilo
35b2297f1e
Support AURDEST
the AURDEST environment variable can now be used to configure the build
dir.
2019-10-17 23:54:20 +01:00
Jguer
a3f30beea4
go mod tidy 2019-10-17 00:29:06 +01:00
J Guerreiro
9e773149e9
Merge pull request #1064 from Morganamilo/refactor-files
Refactor files
2019-10-17 00:27:44 +01:00
morganamilo
471b07152e
Add .go to gitignore 2019-10-16 23:18:04 +01:00
morganamilo
b60a888981
Simplify stringset function names
Now that stringset has its own module we can use more basic function
names while keeping it obvious what it does.
2019-10-16 23:18:04 +01:00
morganamilo
dacd77012c
Move multierror to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo
cff358d5d6
Move intrange to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo
f2579f26a3
Move stringset to its own module
types is pretty generic as a module name, this should be split into
seperate modules.
2019-10-16 23:18:04 +01:00
morganamilo
0856edcf04
Move LessRunes into main
This comparitor function could hardly be considored a type. It's also
very small and probably not too useful overall so keep it in utils.
2019-10-16 22:02:50 +01:00
Anna
543d3afaa7
Merge pull request #1053 from Morganamilo/group-transactions-fix
Re-add --batchinstall and fix dep issues
2019-10-16 21:48:20 +01:00
morganamilo
4d91acc749
Re-add --batchinstall and fix dep issues 2019-10-16 20:59:52 +01:00
Jguer
8151e47211
Fix linting test not exiting in case of error 2019-10-16 17:24:59 +01:00
Jguer
91232f2b74
Enable workflows only on tag push and on specific directories 2019-10-16 03:04:01 +01:00
Jguer
d647d29435
Added multiarch build and release workflow 2019-10-16 02:51:14 +01:00
Jguer
077b1092fd
pkg/completion interfaces more strict 2019-10-16 00:03:58 +01:00
J Guerreiro
73d87b01b0
Merge pull request #1062 from reyreaud-l/add-diff-review-ref
Change ref name used in git to compute diff to "AUR_SEEN".
2019-10-15 23:55:36 +01:00
Loic Reyreaud
21d0f33dae
Change ref name used for marking reviewed diff to AUR_SEEN 2019-10-15 10:02:10 +02:00
Loic Reyreaud
de48604633
change ref used in git to compute diff to AURUTILS_SEEN
Introduce a global constant in download.go to avoid re-typing the string
everytime.
Change the string form YAY_DIFF_SEEN to AURUTILS_SEEN.
2019-10-14 11:07:21 +02:00
J Guerreiro
7b710b796b
Merge pull request #1056 from Morganamilo/searchby
Add --searchby
2019-10-13 23:38:28 +01:00
J Guerreiro
96dd1d3ce2
Merge pull request #1061 from Jguer/enforce-lint
Enforce lint in CI
2019-10-13 23:37:35 +01:00
Jguer
c180fa8d19
PkgbuildDiffs use MultiError now to accumulate errors instead of breaking execution at any error 2019-10-13 23:23:55 +01:00
Jguer
29b051134a
Add comments to Base type 2019-10-13 20:59:25 +01:00
Jguer
c44f738ba8
Convert linting to Makefile action. Patch Dockerfile and CI script 2019-10-13 20:59:20 +01:00
Jguer
a591b33262
Add errguards throughout the code to enable golangci-lint 2019-10-13 20:56:27 +01:00
Jguer
422a5931af
Check fields length to avoid panic in editor prompt. Fixes #834 2019-10-13 00:48:12 +01:00
J Guerreiro
f1a6c4afdc
Merge pull request #1049 from reyreaud-l/add-diff-review-ref
FR #994: Implement proper diff display
2019-10-13 00:07:56 +01:00
J Guerreiro
923ec9aafd
Merge pull request #1054 from Morganamilo/default
Have "make build" build be the default again
2019-10-11 00:25:05 +01:00
morganamilo
ab2101ab49
Add --searchby
Allow using the RPC's &by= field during -Ss
2019-10-10 17:43:22 +01:00
morganamilo
b773ec2aa4
Have "make build" build be the default again 2019-10-10 16:37:37 +01:00
Anna
3579d3521a
Merge pull request #1052 from tomswartz07/master
Fix Typos
2019-10-10 09:30:58 +01:00
Tom Swartz
5d7ea17b15
Fix typo in comment text 2019-10-09 10:15:36 -04:00
Tom Swartz
81dcc339e0
Fix typo in completion text 2019-10-09 10:15:20 -04:00
Loic Reyreaud
7ee206f36e
Implement proper diff display
As raised in #994, diff display was not proper when interrupting during
download or diff review.

This commit introduce:
- Add a ref in the git tree named "YAY_DIFF_REVIEW" which is set to the last
diff reviewed by the user.
- Change the function displaying diff to user to make proper use of this
new ref. If the ref does not exist in the git tree, it will display the
diff from origin to HEAD@{upstream}.
- Add a function updating the YAY_DIFF_REVIEW after it has been reviewed
by user. It uses the `toDiff` list in the `install` function.
- Add utils function related to handling this change in download.go.

This change only consider diff reviewed to update the YAY_DIFF_REVIEW ref.
If a user does not enable review, the ref will not be updated and the
user will be prompted for review when he enables diff review.

Signed-off-by: Loic Reyreaud <reyreaud.loic@gmail.com>
2019-10-07 13:59:17 +02:00
J Guerreiro
6e2a4def99
Merge pull request #1048 from Jguer/module-types
Module types
2019-10-07 12:10:40 +01:00
cominixo01
a7619cce2b Only remove VCS if the package was removed successfully (#1041)
* Only remove VCS if the package was removed successfully

* Use := instead of var

* Fix formatting
2019-10-05 20:20:20 +01:00
Jguer
ed274ec665
Improve testing of Intranges 2019-10-05 19:42:47 +01:00
Jguer
bf89b3383c
Move IntRange definition to types package 2019-10-05 19:23:13 +01:00
Jguer
b01790f752
Moved StringSet definition to types package 2019-10-05 18:39:31 +01:00
Jguer
3d31b52799
Moved LessRunes to types package 2019-10-05 18:11:49 +01:00
Jguer
9e205eef4b
Move MultiError to types package 2019-10-05 17:35:46 +01:00
Jguer
fdcfeba902
Bump version to 9.3.3. Fix issues with make build calling make vendor 2019-10-05 11:16:58 +01:00
J Guerreiro
769aee728a
Merge pull request #1046 from Jguer/module-completion
Move completion to submodule
2019-10-05 02:20:20 +01:00
Jguer
5fa3557817
Store completions in yay's cache folder instead of build directory 2019-10-05 02:10:15 +01:00
Jguer
c5c2e906d3
Move completion to submodule 2019-10-05 02:02:30 +01:00
Jguer
5084391e79
Makefile: Fix docker-build 2019-10-05 01:04:01 +01:00
Jguer
6589631c6a
Removed GOPATH symlink needed before go modules 2019-10-04 23:32:55 +01:00
J Guerreiro
569d314cea
Merge pull request #1045 from Jguer/yay-git-actions
Upload yay releases using github-actions
2019-10-04 22:45:03 +01:00