10 Commits

Author SHA1 Message Date
Tonis Tiigi
1bbf73efa9 llb: avoid duplicate instances of sourcemaps in provenance
If build contains multiple subbuilds all of their sources
are tracked in provenance attestations. When some subbuilds
are coming from same source file (eg. same Dockerfile but
different targets) currently the same file would appear
in multiple times. This detects such duplicates and makes
sure definitions from multiple subbuilds can map to same file.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2023-08-31 08:28:40 -07:00
Tonis Tiigi
1553c2ad95 add language property for sourcemap
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2023-05-29 17:17:56 -07:00
Brian Goff
206b3a1eeb Add some doc strings for LLB functions
This is just a first round of "would have been useful to me" sort of
documentation and examples for the LLB client API.
This is not in any way exhaustive.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2023-05-15 22:22:09 +00:00
Kohei Tokunaga
959d63fe43 Avoid losing location when vertices duplicate
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2022-05-11 00:07:38 +09:00
Koichi Shiraishi
50ae0d8cf4 all: unify the go-digest package import alias to digest
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:12 +09:00
Edgar Lee
7c81e16b8a Fix duplicate source maps and fix issue preventing multiple locations per source map
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-05-20 18:48:20 -07:00
Edgar Lee
59fa9fc9a0 Allow multiple source locations to be added as a constraint
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-05-20 16:48:44 -07:00
Edgar Lee
7a90a36b46 Support multiple source maps and locations for source-level stacktraces
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-05-20 16:17:35 -07:00
Tonis Tiigi
90c5e67496 client: add source mapping tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-05-19 17:22:14 -07:00
Tonis Tiigi
6073e6cff3 llb: enable source tracking
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-05-18 15:50:03 -07:00