Giter Club home page Giter Club logo

Comments (3)

ndeloof avatar ndeloof commented on August 11, 2024

afaict, LookupValue: configDetails.LookupEnv captures LookupEnv func with configDetails receiver. Later configDetails.Environment value is set, this doesn't change reference to configDetails used as receiver and as such execution of this func will use this map. But maybe I'm wrong with actual reference in use.

Do you have an explicit scenario which demonstrates such an issue ?

from compose-go.

lionello avatar lionello commented on August 11, 2024

That's correct, but only if it's not nil to begin with. If initialized to a new map, all's good and the project name is being picked up (even though it's added after the capture), but if it's nil, then the project name is added to the new map, but the captured value is still nil.

from compose-go.

ndeloof avatar ndeloof commented on August 11, 2024

I don't get it. we capture LookupEnv func, so actually the configDetails receiver, then when executed this function will access receiver field Environment, even this one was set after.
Please provide an illustration example (either code or docker compose usage) to demonstrate a bug

from compose-go.

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.