@@ -121,7 +121,7 @@ func newDeployFiles() *deployFiles {
121
121
func (d * deployFiles ) Add (p string , f * FileBundle ) {
122
122
d .Files [p ] = f
123
123
d .Sums [p ] = f .Sum
124
- // Remove ":original_sha" part when to save in Hashed (asset management )
124
+ // Remove ":original_sha" part when to save in Hashed (large media )
125
125
sum := f .Sum
126
126
if strings .Contains (sum , ":" ) {
127
127
sum = strings .Split (sum , ":" )[0 ]
@@ -167,8 +167,8 @@ func (n *Netlify) DoDeploy(ctx context.Context, options *DeployOptions, deploy *
167
167
}
168
168
}
169
169
170
- context .GetLogger (ctx ).Infof ("Getting files info with asset management flag: %v" , deploy .SiteCapabilities .AssetManagement )
171
- files , err := walk (options .Dir , options .Observer , deploy .SiteCapabilities .AssetManagement )
170
+ context .GetLogger (ctx ).Infof ("Getting files info with large media flag: %v" , deploy .SiteCapabilities .LargeMedia )
171
+ files , err := walk (options .Dir , options .Observer , deploy .SiteCapabilities .LargeMedia )
172
172
if err != nil {
173
173
if options .Observer != nil {
174
174
options .Observer .OnFailedWalk ()
@@ -458,7 +458,7 @@ func (n *Netlify) uploadFile(ctx context.Context, d *models.Deploy, f *FileBundl
458
458
}
459
459
}
460
460
461
- func walk (dir string , observer DeployObserver , useAssetManagement bool ) (* deployFiles , error ) {
461
+ func walk (dir string , observer DeployObserver , useLargeMedia bool ) (* deployFiles , error ) {
462
462
files := newDeployFiles ()
463
463
464
464
err := filepath .Walk (dir , func (path string , info os.FileInfo , err error ) error {
@@ -494,13 +494,13 @@ func walk(dir string, observer DeployObserver, useAssetManagement bool) (*deploy
494
494
}
495
495
file .Sum = hex .EncodeToString (s .Sum (nil ))
496
496
497
- if useAssetManagement {
497
+ if useLargeMedia {
498
498
o , err := os .Open (path )
499
499
if err != nil {
500
500
return err
501
501
}
502
502
defer o .Close ()
503
- originalSha := getAssetManagementSha (o )
503
+ originalSha := getLFSSha (o )
504
504
if originalSha != "" {
505
505
file .Sum += ":" + string (originalSha )
506
506
}
@@ -654,7 +654,7 @@ func createHeader(archive *zip.Writer, i os.FileInfo, runtime string) (io.Writer
654
654
return archive .Create (i .Name ())
655
655
}
656
656
657
- func getAssetManagementSha (file io.Reader ) string {
657
+ func getLFSSha (file io.Reader ) string {
658
658
// currently this only supports certain type of git lfs pointer files
659
659
// version [version]\noid sha256:[oid]\nsize [size]
660
660
data := make ([]byte , 150 )
0 commit comments