From 2d60e036937de51068bc267d8c0d89332966f6f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Wed, 12 Aug 2020 10:45:30 +0200 Subject: _elementsources.py: Fix source names in unique key The goal was to include the source plugin kind in the element cache key as the unique key of a source may not be unique across different source plugins. This is the source equivalent of the `element-plugin-name` value in the element cache key. However, `Source._get_source_name()` was the wrong method for this as that also includes the key itself, which may not even be set yet. This results in a cache key change. Fixes: 3953bcc6 ("element.py: clobber sources with workspace") --- tests/cachekey/project/sources/bzr1.expected | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/cachekey/project/sources/bzr1.expected') diff --git a/tests/cachekey/project/sources/bzr1.expected b/tests/cachekey/project/sources/bzr1.expected index 39aef7888..912b3a8a1 100644 --- a/tests/cachekey/project/sources/bzr1.expected +++ b/tests/cachekey/project/sources/bzr1.expected @@ -1 +1 @@ -5cce55b7c73d89bda839cd6dc89763b8dbcc2d6ce11924219d1a4b052ad707cf \ No newline at end of file +e485371c3d3055b8d9666a4be231b0eb6747145d9c83954dd95a2df25b40b152 \ No newline at end of file -- cgit v1.2.1