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

Deprecation warning from Serverless Variables Resolver when deploying to GCP using serverless template #2634

Open
schoolytics-dev0 opened this issue Apr 29, 2021 · 2 comments
Labels
backend:serverless-gcp good first issue help wanted

Comments

@schoolytics-dev0
Copy link

@schoolytics-dev0 schoolytics-dev0 commented Apr 29, 2021

Describe the bug

Serverless: Deprecation warning: Variables resolver reports following resolution errors:
              - Cannot resolve variable at "provider.environment.CUBEJS_APP": Value not found at "self" source,
              - Cannot resolve variable at "functions.cubejsProcess.events.0.event.resource": Value not found at "self" source
            From a next major this will be communicated with a thrown error.
            Set "variablesResolutionMode: 20210326" in your service config, to adapt to new behavior now
            More Info: https://www.serverless.com/framework/docs/deprecations/#NEW_VARIABLES_RESOLVER

To Reproduce
Steps to reproduce the behavior:

  1. npm install -g serverless
  2. npx cubejs-cli create -d bigquery -t serverless-google
  3. serverless deploy -v
  4. See warnings

Expected behavior
Should use self variable fine

Version:
0.27

@hassankhan hassankhan added backend:serverless-gcp good first issue help wanted labels May 4, 2021
@github-actions
Copy link

@github-actions github-actions bot commented May 4, 2021

If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you.
If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines.
You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.

@hassankhan
Copy link
Member

@hassankhan hassankhan commented May 4, 2021

Hi @schoolytics-dev0 👋

Thanks for posting this issue; we'd be more than happy to review and merge any PRs fixing this deprecation. The relevant part of the codebase can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:serverless-gcp good first issue help wanted
Projects
None yet
Development

No branches or pull requests

2 participants