Giter Club home page Giter Club logo

Comments (5)

mnottale avatar mnottale commented on May 27, 2024

That's valid yaml for an empty dictionary :)

from app.

Dimrok avatar Dimrok commented on May 27, 2024

Indeed, but it's just inconsistent.

Shouldn't we always favor the <name>:<carriage return><carriage return> or empty file for empty dictionaries?

from app.

garethr avatar garethr commented on May 27, 2024

Not sure about consistent, but it's aesthetically more pleasing to provide a blank file than the {}.

from app.

ijc avatar ijc commented on May 27, 2024

This seems to still be the case. There's an unspoken assumption that cp.yml contains a valid compose file with nothing which can be detected as a setting.

$ git rev-parse HEAD
3603491fdcc72ebf31195a5ba092e50628dbff38
$ make bin/docker-app
CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=3603491f -X github.com/docker/app/internal.Version=v0.6.0-44-g3603491f -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-01-21T11:28:40Z" -o bin/docker-app ./cmd/docker-app
$ cat > cp.yml <<EOF
version: '3.2'
services:
  web:
    build: .
    ports:
     - "5000:5000"
  redis:
    image: "redis:alpine"

EOF
$ ./bin/docker-app init -c cp.yml foo
$ find foo.dockerapp/
foo.dockerapp/
foo.dockerapp/metadata.yml
foo.dockerapp/docker-compose.yml
foo.dockerapp/parameters.yml
$ cat foo.dockerapp/parameters.yml 
{}

from app.

simonferquel avatar simonferquel commented on May 27, 2024

Won't fix

from app.

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.