Code Monkey home page Code Monkey logo

Comments (4)

ygoe avatar ygoe commented on June 23, 2024

The whole purpose of NetRevisionTool is to not touch the file at all when compilation is finished so that no changes appear to the version control. You are proposing to break this rule and make permanent changes to the file.

Also, this would lead to different versions each time you build the project, which can be as often as you want. I perform builds every now and then during coding to check where new errors appear. I also build automatically before committing. The version number would then no longer deterministically depend on the source, time or history alone. Separate build servers that only check out a read-only copy of the source would add their share of the confusion to it.

If this would be implemented, additional care must be taken of the current file encoding. Since this is not relevant for the build process, the temporarily modified files may use a different encoding than the original source file. This would be another change that's exposed to version control. Albeit probably only once.

from netrevisiontool.

h-h-h-h avatar h-h-h-h commented on June 23, 2024

this would lead to different versions each time you build the project

My point is:

  • Build counts are common for version strings
  • A user sees whether a successive version is available without the need for the developer to care about small third-place version number changes

If you build automatically before committing, a change happening before the commit wouldn't be bad. Sure, in other cases a developer would have to remember the {sernum:...} setting and take it into account for the workflow.

If this would be implemented

Are you unsure whether to do it or not?

from netrevisiontool.

ygoe avatar ygoe commented on June 23, 2024

Build counts are common for version strings

Yes, and most of them depend on the date.

without the need for the developer to care about small third-place version number changes

This is in fact all NetRevisionTool exists for. And it provides plenty of methods to do just that. For example a time-based number in several formats, or a commit counter (similar to SVN revision number), or a build/commit date in several formats. Did you notice those? All of them work non-destructive by deriving the version information only from their environment without changing the environment.

Are you unsure whether to do it or not?

Yes I am.

from netrevisiontool.

h-h-h-h avatar h-h-h-h commented on June 23, 2024

For example a time-based number in several formats, or a commit counter (similar to SVN revision number), or a build/commit date in several formats. Did you notice those?

Yes. There are already good options! I'll see whether time-based values are also okay for me.

from netrevisiontool.

Related Issues (13)

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.