dataform-co package installation error for versions 3.0.0-beta1 to at least 3.0.0-beta4
stevenleggdfe opened this issue · 1 comments
stevenleggdfe commented
Steps to reproduce:
- Update to dataform-co v3.0.0-beta.0 via package.json within a development workspace in GCP Dataform and click Install packages.
- Migrate to workflow_settings.yaml with a file like the below.
defaultAssertionDataset: dataform_assertions
defaultProject: HIDDEN
defaultDataset: dataform
defaultLocation: europe-west2
vars:
environmentEventSourceTag: production
- Retain package.json - this is necessary because we're using our own package imported from a Github repo. Contents of package.json are something like the below:
{
"dependencies": {
"@dataform/core": "3.0.0-beta.0",
"hidden-package-name": "https://github.com/hidden-org-name/hidden-package-name/archive/refs/tags/vx.y.z.tar.gz"
}
}
- With package.json open in GCP Dataform, click Install packages. This works as expected on v3.0.0-beta.0.
- Update package.json to increment the version of dataform-co to (say) v3.0.0-beta4.
- With package.json open in GCP Dataform, click Install packages.
- Packages are not installed and package-lock.json is not updated. The following error is displayed: "API request error: NPM Execution error: npm notice npm notice New major version of npm available! 8.18.0 -> 10.5.2 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.5.2 npm notice Run
npm install -g npm@10.5.2
to update! npm notice npm ERR! code ETARGET npm ERR! notarget No matching version found for @dataform/core@3.0.0-beta4. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! Log files were not written due to the config logs-max=0"
stevenleggdfe commented
Fix for this was to add "name": "hidden-package-name"
to package.json
for the package (not the Dataform repo using the package) as per documentation. Closing.