Open michael-valdron opened 1 month ago
Explains why checks are now passing: https://github.com/devfile/api/issues/1464#issuecomment-2033079380
See #1464 for details.
I believe we are already using project.json
and the workspace.json
is just left there, the fix to this possibly is to just remove workspace.json
?
Core: https://github.com/devfile/devfile-web/blob/main/libs/core/project.json Docs: https://github.com/devfile/devfile-web/blob/main/libs/docs/project.json Landing Page E2E: https://github.com/devfile/devfile-web/blob/main/apps/landing-page-e2e/project.json Landing Page: https://github.com/devfile/devfile-web/blob/main/apps/landing-page/project.json Registry-Viewer E2E: https://github.com/devfile/devfile-web/blob/main/apps/registry-viewer-e2e/project.json Registry-Viewer: https://github.com/devfile/devfile-web/blob/main/apps/registry-viewer/project.json
fyi @michael-valdron
I believe we are already using
project.json
and theworkspace.json
is just left there, the fix to this possibly is to just removeworkspace.json
?Core: https://github.com/devfile/devfile-web/blob/main/libs/core/project.json Docs: https://github.com/devfile/devfile-web/blob/main/libs/docs/project.json Landing Page E2E: https://github.com/devfile/devfile-web/blob/main/apps/landing-page-e2e/project.json Landing Page: https://github.com/devfile/devfile-web/blob/main/apps/landing-page/project.json Registry-Viewer E2E: https://github.com/devfile/devfile-web/blob/main/apps/registry-viewer-e2e/project.json Registry-Viewer: https://github.com/devfile/devfile-web/blob/main/apps/registry-viewer/project.json
fyi @michael-valdron
@Jdubrick This might need further investigation, though the project.json
files are there the project builds are still being ignored. This is possibly related to the workspace.json
that is still present that pointed to each project, it might be a possible file change or command change that would fix this process to detect the inner projects.
I believe we are already using
project.json
and theworkspace.json
is just left there, the fix to this possibly is to just removeworkspace.json
? Core: https://github.com/devfile/devfile-web/blob/main/libs/core/project.json Docs: https://github.com/devfile/devfile-web/blob/main/libs/docs/project.json Landing Page E2E: https://github.com/devfile/devfile-web/blob/main/apps/landing-page-e2e/project.json Landing Page: https://github.com/devfile/devfile-web/blob/main/apps/landing-page/project.json Registry-Viewer E2E: https://github.com/devfile/devfile-web/blob/main/apps/registry-viewer-e2e/project.json Registry-Viewer: https://github.com/devfile/devfile-web/blob/main/apps/registry-viewer/project.json fyi @michael-valdron@Jdubrick This might need further investigation, though the
project.json
files are there the project builds are still being ignored. This is possibly related to theworkspace.json
that is still present that pointed to each project, it might be a possible file change or command change that would fix this process to detect the inner projects.
This may be related to the nx cache also, its possible the env variable for skipping it isn't working so it skips the tests, but I agree investigation should be done.
I know that the command in the issue will output a project build if something in the project was changed, else, it will have 0 builds
I know that the command in the issue will output a project build if something in the project was changed, else, it will have 0 builds
Yeah you correct, this would lower the priority and scope of this report as its just warnings.
Nx build no longer builds any projects due to the newer version of Nx using different
project.json
files to define the multiple projects. Without these files, all projects are ignored duringyarn nx affected --target=build
.
Revising to:
Nx build produces warnings due to the newer version of Nx using different
project.json
files to define the multiple projects.
yarn nx affected --target=build
should trigger building the Nx projects.
Revising to:
yarn nx affected --target=build
should not produce warnings aboutworkspace.json
.
Revert version of Nx and dependencies to a previous state to restore usage of
workspace.json
.
Revising to:
N/A
Which area this feature is related to?
/kind bug
Which area this bug is related to?
/area registry-viewer /area landing-page
What versions of software are you using?
Node.js project
Operating System and version: N/A
Node.js version: 18
Yarn version: 1.22.19
Project.json:
@nx/node
Bug Summary
Describe the bug:
Nx build produces warnings due to the newer version of Nx using different
project.json
files to define the multiple projects.To Reproduce:
Run
yarn nx affected --target=build
.Expected behavior
yarn nx affected --target=build
should not produce warnings aboutworkspace.json
.Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
Output of
yarn nx affected --target=build --parallel=3
:Additional context
Any workaround?
N/A
Suggestion on how to fix the bug
project.json
and convert currentworkspace.json
content into to used in theproject.json
file format.workspace.json
file(s)