File tree Expand file tree Collapse file tree 3 files changed +1
-24
lines changed 
jreleaser/distributions/sdkman-cli/brew Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ class {{brewFormulaName}} < Formula
2323      sdkman_curl_max_time=10
2424      sdkman_debug_mode=false
2525      sdkman_insecure_ssl=false
26-       sdkman_rosetta2_compatible=false
2726      sdkman_selfupdate_feature=false
2827    EOS
2928  end
Original file line number Diff line number Diff line change @@ -70,11 +70,7 @@ function infer_platform() {
7070		echo  " DarwinX64" 
7171		;;
7272	  arm64)
73- 		if  [[ " $sdkman_rosetta2_compatible " ==  ' true' ;  then 
74- 			echo  " DarwinX64" 
75- 		else 
76- 			echo  " DarwinARM64" 
77- 		fi 
73+ 		echo  " DarwinX64" 
7874		;;
7975	  * )
8076	  	echo  " DarwinX64" 
Original file line number Diff line number Diff line change @@ -41,22 +41,4 @@ class PlatformSpec extends SdkmanEnvSpecification {
4141		" MSYS64" " " " msys64" 
4242		" CYGWIN" " " " exotic" 
4343	}
44- 
45- 	def  " should enable rosetta 2 compatibility mode with environment variable" 
46- 		given :
47- 		unameStub. forKernel(" Darwin" . forMachine(" arm64" 
48- 		bash =  sdkmanBashEnvBuilder
49- 				.withUnameStub(unameStub)
50- 				.withConfiguration(" sdkman_rosetta2_compatible" " true" 
51- 				.build()
52- 		bash. start()
53- 		bash. execute(" source $bootstrapScript  " 
54- 
55- 		when :
56- 		bash. execute(' echo $SDKMAN_PLATFORM' 
57- 
58- 		then :
59- 		! bash. output. contains(" darwinarm64" 
60- 		bash. output. contains(" darwinx64" 
61- 	}
6244}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments