Code Monkey home page Code Monkey logo

Comments (9)

 avatar commented on June 1, 2024

@livehybrid This feature is not documented and not widely used from what I've seen.

I think we can even deprecate it and instead suggest using additional_packaging.py (which is at least mentioned in the documentation). You can achieve the same by deleting unnecessary files using additional_packaging.py.

What do you think?

from addonfactory-ucc-generator.

 avatar commented on June 1, 2024

And if you can share what files are you trying to ignore?

from addonfactory-ucc-generator.

livehybrid avatar livehybrid commented on June 1, 2024

It would be a shame to lose this functionality when it 99% works already, just needs a small edit.
The .uccignore format follows the format of others similar files (such as .slimignore/.gitignore/.dockerignore etc) so makes sense to keep it like this?

from addonfactory-ucc-generator.

 avatar commented on June 1, 2024

@livehybrid Can you share your use case? What files are you trying to ignore?

Reasons behind deleting it are:

  • it is not documented
  • it is not widely used
  • you can achieve the same by using additional_packaging.py

from addonfactory-ucc-generator.

livehybrid avatar livehybrid commented on June 1, 2024

Currently we create a version of apps for testing, some for internal use and some for external publishing. Some versions have specific things removed such as eventgen.conf,pytest-splunk-addon-data.conf and samples depending on the audience.
We could implement this with additional-packaging.py, but would do so by taking the existing code from the ucc-gen app (but with the proposed fix).

It would be nice to retain this functionality that is familiar for users of other systems such as git/docker/slim etc (as this follows the same pattern), but may have to update our existing apps to use a different approach if this is removed.

Thanks

from addonfactory-ucc-generator.

 avatar commented on June 1, 2024

I had a chat with @rfaircloth-splunk and now I understand the issue and why do you have eventgen.conf, pytest-splunk-addon-data.conf and other files in .uccignore file.

ucc-gen got this feature because we had the same issue, but we store pytest-splunk-addon-data.conf and samples in other folders right now, so we are not using it anymore.

Let me work on a fix and tests for it.

from addonfactory-ucc-generator.

ryanfaircloth avatar ryanfaircloth commented on June 1, 2024

More internal discuessions, which is a reminder of the consequences of having undocumented temporary features. The original purpose of this file was to prevent the ucc-gen from using current templates for generated files while we were consolidating code and doing other cleanup activities. The ask here is actually a missing feature that closely resembles this one. Sorry @arys-splunk I lead you astray on this one.

  • close the current PR you have add a new PR with similar code as a new function, with the ".uccignorepackage" as the source file instead. Document both where the the current feature is "Trust the developer don't replace template files" and the new feature is "don't include in output"

from addonfactory-ucc-generator.

 avatar commented on June 1, 2024

After clarifying one more time with Ryan, we need to have 2 files:

  1. .uccignore - if you add a file there - it means that ucc-gen should not rewrite this file with it's own content, example - import_declare_test.py with changes that you do not want to lose.
  2. .uccpackageignore - tell ucc-gen not to specific file / folder to the "output" directory, example - eventgen.conf.

.uccignore has misleading name, which suggest one thing, but initially was implemented as other feature and not documented.

from addonfactory-ucc-generator.

artemrys avatar artemrys commented on June 1, 2024

I am documenting .uccignore feature, it will be available in v5.32.0.

from addonfactory-ucc-generator.

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.