@@ -40,17 +40,22 @@ function clonePhoenixProRepo() {
4040
4141 const proRepoUrl = process . env . PRO_REPO_URL ;
4242 const proRepoToken = process . env . PRO_REPO_ACCESS_TOKEN ;
43- const targetDir = path . resolve ( __dirname , '../src/extensionsIntegrated/phoenix-pro' ) ;
43+ // TODO: Change pack to phoenix-pro folder after porting is complete
44+ const targetDir = path . resolve ( __dirname , '../src/extensionsIntegrated/phoenix-pro-temp' ) ;
4445
45- // Check if both environment variables are set
46- if ( ! proRepoUrl || ! proRepoToken ) {
46+ // Check if repository URL is set
47+ if ( ! proRepoUrl ) {
4748 // this si what will happen in most dev builds.
48- console . log ( 'Skipping phoenix-pro clone: PRO_REPO_URL or PRO_REPO_ACCESS_TOKEN not set' ) ;
49+ console . log ( 'Skipping phoenix-pro clone: PRO_REPO_URL not set' ) ;
4950 console . log ( 'This is expected for community builds' ) ;
5051 resolve ( ) ;
5152 return ;
5253 }
5354
55+ if ( ! proRepoToken ) {
56+ console . warn ( 'PRO_REPO_ACCESS_TOKEN not set, will attempt clone without authentication' ) ;
57+ }
58+
5459 // all code below is only likely to be executed in the ci environment
5560
5661 // Check if directory already exists
@@ -111,8 +116,10 @@ function clonePhoenixProRepo() {
111116 const commitID = trackingRepos . phoenixPro . commitID ;
112117 console . log ( `Target commit: ${ commitID } ` ) ;
113118
114- // Construct authenticated URL
115- const authUrl = proRepoUrl . replace ( 'https://' , `https://oauth2:${ proRepoToken } @` ) ;
119+ // Construct authenticated URL if token is available
120+ const authUrl = proRepoToken
121+ ? proRepoUrl . replace ( 'https://' , `https://oauth2:${ proRepoToken } @` )
122+ : proRepoUrl ;
116123
117124 // Step 1: Shallow clone
118125 console . log ( 'Step 1/3: Cloning repository (shallow clone)...' ) ;
@@ -153,7 +160,7 @@ function clonePhoenixProRepo() {
153160 console . error ( `Error: ${ error . message } ` ) ;
154161 console . error ( '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' ) ;
155162 console . error ( 'Build failed because:' ) ;
156- console . error ( ' - PRO_REPO_URL and PRO_REPO_ACCESS_TOKEN are set (phoenix-pro expected)' ) ;
163+ console . error ( ' - PRO_REPO_URL is set (phoenix-pro expected)' ) ;
157164 console . error ( ' - Clone operation failed' ) ;
158165 console . error ( '' ) ;
159166 console . error ( 'Possible causes:' ) ;
0 commit comments