DRUPAL_CORE not taken into account
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3479986. -->
Reported by: [grimreaper](https://www.drupal.org/user/2388214)
Related to !269
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In MR <a href="https://git.drupalcode.org/project/sobki_profile_bootstrap/-/merge_requests/20">https://git.drupalcode.org/project/sobki_profile_bootstrap/-/merge_requests/20</a>, I got the job <a href="https://git.drupalcode.org/project/sobki_profile_bootstrap/-/jobs/3016726">https://git.drupalcode.org/project/sobki_profile_bootstrap/-/jobs/3016726</a> showing me that "_TARGET_CORE" is deprecated. </p>
<p>After switching to DRUPAL_CORE, in the new pipeline I got <a href="https://git.drupalcode.org/project/sobki_profile_bootstrap/-/jobs/3017065">https://git.drupalcode.org/project/sobki_profile_bootstrap/-/jobs/3017065</a></p>
<pre>Root composer.json requires drupal/core-composer-scaffold 10.3.6 (exact version match: 10.3.6 or 10.3.6.0), found drupal/core-composer-scaffold[10.3.x-dev] but it does not match the constraint.</pre><p>I think it should be dynamically obtained from DRUPAl_CORE and/or the composer.json of the project in scripts/expand_composer_json.php?</p>
<p>I wonder if I should add <code>IGNORE_PROJECT_DRUPAL_CORE_VERSION: 0</code> in my variables but I thought it would had been taken into account automatically.</p>
<p>Is it a side effect, or something forgotten from <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/gitlab_templates/issues/3478044" title="Status: Closed (fixed)">#3478044: Find a better consistent way to override the core version</a></span>?</p>
<p>Thanks for any help.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
issue