@@ -418,8 +418,15 @@ func copyBuildedTT(binDir, path, version string, installCtx InstallCtx,
418
418
return err
419
419
}
420
420
}
421
- err = util .CopyFilePreserve (filepath .Join (path , "tt" ), filepath .Join (binDir , version ))
422
- return err
421
+
422
+ binPathTt := filepath .Join (binDir , version )
423
+ err = util .CopyFilePreserve (filepath .Join (path , "tt" ), binPathTt )
424
+ if err != nil {
425
+ return err
426
+ }
427
+ log .Infof ("Tt executable is installed to: %q" , binPathTt )
428
+
429
+ return nil
423
430
}
424
431
425
432
// checkCommit checks the existence of a commit by hash.
@@ -679,11 +686,15 @@ func installTt(binDir string, installCtx InstallCtx, distfiles string) error {
679
686
}
680
687
681
688
// Set symlink.
682
- err = util .CreateSymlink (versionStr , filepath .Join (binDir , "tt" ), true )
689
+ symlinkPath := filepath .Join (binDir , "tt" )
690
+ err = util .CreateSymlink (versionStr , symlinkPath , true )
683
691
if err != nil {
684
692
printLog (logFile .Name ())
685
693
return err
686
694
}
695
+
696
+ log .Infof ("Made default by symlink %q" , symlinkPath )
697
+ log .Info ("Use the following command to add the bin_dir directory to the PATH: . <(tt env)" )
687
698
log .Infof ("Done." )
688
699
if installCtx .Noclean {
689
700
log .Infof ("Artifacts can be found at: %s" , path )
@@ -840,8 +851,8 @@ func copyBuildedTarantool(binPath, incPath, binDir, includeDir, version string,
840
851
return fmt .Errorf ("unable to create %s\n Error: %s" , binDir , err )
841
852
}
842
853
843
- err = util . CopyFileChangePerms ( binPath , filepath .Join (binDir , version ),
844
- defaultDirPermissions )
854
+ execPath := filepath .Join (binDir , version )
855
+ err = util . CopyFileChangePerms ( binPath , execPath , defaultDirPermissions )
845
856
if err != nil {
846
857
return err
847
858
}
@@ -855,8 +866,14 @@ func copyBuildedTarantool(binPath, incPath, binDir, includeDir, version string,
855
866
} else if err != nil {
856
867
return fmt .Errorf ("unable to create %s\n Error: %s" , includeDir , err )
857
868
}
869
+
858
870
err = copy .Copy (incPath , filepath .Join (includeDir , version )+ "/" )
859
- return err
871
+ if err != nil {
872
+ return err
873
+ }
874
+ log .Infof ("Tarantool executable is installed to: %q" , execPath )
875
+
876
+ return nil
860
877
}
861
878
862
879
//go:embed Dockerfile.tnt.build
@@ -1203,6 +1220,8 @@ func installTarantool(binDir string, incDir string, installCtx InstallCtx,
1203
1220
return err
1204
1221
}
1205
1222
1223
+ log .Infof ("Made default by symlink %q" , filepath .Join (incDir , "tarantool" ))
1224
+ log .Info ("Use the following command to add the bin_dir directory to the PATH: . <(tt env)" )
1206
1225
log .Infof ("Done." )
1207
1226
if installCtx .Noclean {
1208
1227
log .Infof ("Artifacts can be found at: %s" , path )
0 commit comments