debian-forge-composer/internal/disk
Christian Kellner 5bf4892077 disk: use pointer receiver for PartitionTable
The `PartitionTable` object contains an array of `Partitions`, which
is shared among all shallow copies of `PartitionTable` instances, as
when it is used via a value receiver in method calls. The individual
objects are thus not fully isolated since modifications of array
elements, or in some cases modifications to the array itself, are
shared and visible between all shallow `PartitionTable` copies. Thus
use a pointer receiver for all methods of `PartitionTable` to make
it explicit that modifications will affect other objects.
2022-02-22 19:23:41 +00:00
..
customizations.go disk: create{Partition -> Filesystem} 2022-02-22 19:23:41 +00:00
disk.go disk: use pointer receiver for PartitionTable 2022-02-22 19:23:41 +00:00
disk_test.go gosec: G404 - Use of weak rng 2021-12-13 12:17:30 +02:00