Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative output path #437

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Use relative output path #437

merged 2 commits into from
Apr 17, 2024

Conversation

Pl217
Copy link
Contributor

@Pl217 Pl217 commented Apr 17, 2024

The main motive of this PR is to fix the build behavior and start using relative output path. After upgrading Nx from 16 to 18, the output path behavior changed from absolute to relative. Although I couldn't find the evidence in the changelogs, the change in behavior is proven by experimenting. Building a Docker image fails without adopting to this change, because we're using a multistage build and second stage is copying the output of first (build) stage.

The update to Nx 18.3.0 was done because I thought this would allow for absolute paths again, since their changelog says:

webpack: Should work when absolute paths are supplied as output (#22736)

It didn't, but I kept the update anyway, not to waste the effort. Next major version, Nx 19, should be releasing this month according to their website.

Pl217 added 2 commits April 17, 2024 11:34
This commit is generated by running the following command:
`npx nx migrate 18.3.0`

Unlike when doing major version upgrades, `nx migrate`
command didn't generate `migrations.json` file this time
After upgrading Nx from 16 to 18, the output
path behavior changed from absolute to relative.
Although no evidence was found in the changelogs,
the change in behavior is proven by experimenting.
@Pl217 Pl217 added the ready for review All comments have been addressed, and the Pull Request is ready for review label Apr 17, 2024
@Pl217 Pl217 requested a review from a team as a code owner April 17, 2024 09:43
Copy link

@unocha-hpc unocha-hpc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks have passed and this pull request is ready for manual review

@Delgee Delgee assigned Pl217 and unassigned Delgee Apr 17, 2024
@Delgee Delgee added ready for merge Review and testing is complete. It is ready for merging as soon as CI has finished. and removed ready for review All comments have been addressed, and the Pull Request is ready for review labels Apr 17, 2024
@Pl217 Pl217 merged commit 938e335 into develop Apr 17, 2024
3 checks passed
@Pl217 Pl217 deleted the HPC-9272 branch April 17, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge Review and testing is complete. It is ready for merging as soon as CI has finished.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants