From 4ac5eceeeab1debc6a552bf82ca7adff808f95b7 Mon Sep 17 00:00:00 2001 From: Mattijs Korpershoek Date: Thu, 22 Feb 2024 10:10:00 +0100 Subject: [PATCH 1/4] README: document tag for resource_types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Right now, we document to use the latest version of repo-resource. This is great to stay up-to-date but can introduce regressions whenever the resource is updated. Since repo-resource supports releases now [1], document the release tag instead. [1] https://github.com/makohoek/repo-resource/issues/22 Suggested-by: David Rozé Signed-off-by: Mattijs Korpershoek --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 17214ef..e7c897f 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ resource_types: type: registry-image source: repository: mkorpershoek/repo-resource + tag: v1.0.0 resources: - name: aosp From db2c4b96bc9dd89393b34676b00825738e5dc257 Mon Sep 17 00:00:00 2001 From: Mattijs Korpershoek Date: Thu, 22 Feb 2024 10:15:03 +0100 Subject: [PATCH 2/4] README: add check_jobs to the repo_resource example We documented the check_jobs resource configuration but we did not add it to the example. Add it for consistency. Signed-off-by: Mattijs Korpershoek --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e7c897f..269f08d 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ resources: name: default.xml depth: 1 # use shallow clone for faster syncing jobs: 4 # run with -j4 + check_jobs: 6 # do 6 git ls-remote operations in parallel (check only) ``` ## Behavior From 40ccf2e194e1234af6143b8af9a3e8b91c93dda2 Mon Sep 17 00:00:00 2001 From: Mattijs Korpershoek Date: Thu, 22 Feb 2024 10:16:11 +0100 Subject: [PATCH 3/4] README: update branch master -> main in example The master branch is deprecated on the AOSP side, update the branch the match the new "upstream". Signed-off-by: Mattijs Korpershoek --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 269f08d..fab9f09 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ resources: check_every: 2h # default of 1min seems too frequent source: url: https://android.googlesource.com/platform/manifest - branch: master + branch: main name: default.xml depth: 1 # use shallow clone for faster syncing jobs: 4 # run with -j4 From c774d5e8dd9b26c3028198849f2207b9d08050b3 Mon Sep 17 00:00:00 2001 From: Mattijs Korpershoek Date: Thu, 22 Feb 2024 10:25:08 +0100 Subject: [PATCH 4/4] README: update check behaviour description With the update_manifest() operation, we no longer run repo sync in CHECK. Document this behaviour change since it's quite significant. Signed-off-by: Mattijs Korpershoek --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fab9f09..1bb6d4a 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ resources: ### `check`: Check for new versions in each project under a manifest -Repo init and repo sync are called for a given manifest. -After that, `--revision-as-HEAD` is called to capture the HEADs of each each project. +Repo init and `git ls-remote` are called for a given manifest. +After that we update the input manifest with the revisions retrieved from `git ls-remote`. The whole list of projects is returned as a "manifest version". ### `in`: Syncs the repository, for a given manifest version