mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-05 22:08:27 +00:00
S3 SymLink fix
The copy source should be the name of the source bucket and key name of the source object, separated by a slash (/).
This commit is contained in:
3
AUTHORS
3
AUTHORS
@@ -29,4 +29,5 @@ List of contributors, in chronological order:
|
|||||||
* Clemens Rabe (https://github.com/seeraven)
|
* Clemens Rabe (https://github.com/seeraven)
|
||||||
* TJ Merritt (https://github.com/tjmerritt)
|
* TJ Merritt (https://github.com/tjmerritt)
|
||||||
* Matt Martyn (https://github.com/MMartyn)
|
* Matt Martyn (https://github.com/MMartyn)
|
||||||
* Ludovico Cavedon (https://github.com/cavedon)
|
* Ludovico Cavedon (https://github.com/cavedon)
|
||||||
|
* Petr Jediny (https://github.com/pjediny)
|
||||||
@@ -393,7 +393,7 @@ func (storage *PublishedStorage) SymLink(src string, dst string) error {
|
|||||||
|
|
||||||
params := &s3.CopyObjectInput{
|
params := &s3.CopyObjectInput{
|
||||||
Bucket: aws.String(storage.bucket),
|
Bucket: aws.String(storage.bucket),
|
||||||
CopySource: aws.String(filepath.Join(storage.prefix, src)),
|
CopySource: aws.String(filepath.Join(storage.bucket, storage.prefix, src)),
|
||||||
Key: aws.String(filepath.Join(storage.prefix, dst)),
|
Key: aws.String(filepath.Join(storage.prefix, dst)),
|
||||||
ACL: aws.String(storage.acl),
|
ACL: aws.String(storage.acl),
|
||||||
Metadata: map[string]*string{
|
Metadata: map[string]*string{
|
||||||
|
|||||||
Reference in New Issue
Block a user