mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-10-31 16:13:45 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			513 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			513 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build !windows
 | |
| 
 | |
| package system
 | |
| 
 | |
| // DefaultPathEnv is unix style list of directories to search for
 | |
| // executables. Each directory is separated from the next by a colon
 | |
| // ':' character .
 | |
| const DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 | |
| 
 | |
| // CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter,
 | |
| // is the system drive. This is a no-op on Linux.
 | |
| func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error) {
 | |
| 	return path, nil
 | |
| }
 | 
