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

dataform-co package installation error for versions 3.0.0-beta1 to at least 3.0.0-beta4 #1719

Closed
stevenleggdfe opened this issue Apr 19, 2024 · 1 comment

Comments

@stevenleggdfe
Copy link

Steps to reproduce:

  1. Update to dataform-co v3.0.0-beta.0 via package.json within a development workspace in GCP Dataform and click Install packages.
  2. Migrate to workflow_settings.yaml with a file like the below.
defaultAssertionDataset: dataform_assertions
defaultProject: HIDDEN
defaultDataset: dataform
defaultLocation: europe-west2
vars:
    environmentEventSourceTag: production
  1. 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"
    }
}
  1. With package.json open in GCP Dataform, click Install packages. This works as expected on v3.0.0-beta.0.
  2. Update package.json to increment the version of dataform-co to (say) v3.0.0-beta4.
  3. With package.json open in GCP Dataform, click Install packages.
  4. 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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant