Giter VIP home page Giter VIP logo

Comments (1)

tgummerer avatar tgummerer commented on May 30, 2024

pulumi new
error: unable to open bucket file:///Users/manderse/code/jbanghub/.github/infrastructure/.state?no_tmp_dir=true: stat /Users/manderse/code/jbanghub/.github/infrastructure/.state: no such file or directory

This is expected. It looks like you did a pulumi login file//./.state, which logged you into a backend relative to the current working directory. Presumably this .statedirectory exists somewhere else, but when you switched to your project and tried to use it, the.state` directory didn't exist relative to that current working directory.

What you want to do is either pulumi login file://<absolute-path, i.e. pulumi login file:////Users/manderse/.state or something similar, or just use pulumi login --local, which will make the login directory in ~/.pulumi.

We should probably warn users when they use a relative path here, since that's not really expected (or even expand that relative path for them on login). I'm going to label this as an enhancement request, for this bit here.

manderse@goldentiny infrastructure % pulumi new
error: /Users/manderse/code/jbanghub/.github/infrastructure is not empty; rerun in an empty directory, pass the path to an empty directory to --dir, or use --force

This is also expected, since you now no longer have an empty directory. pulumi new expects an empty directory to make sure it doesn't overwrite any files, unless you use the --force flag, which seems to have worked in your case.

from pulumi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.