Skip to content

0.0.8

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Feb 21:16
· 537 commits to main since this release
62ac5f0

Regolith 0.0.8

This release marks the end of our filter-versioning epic, and comes with three main enhancements:

  1. The ability to version your filters via tag or SHA.
  2. New config format, which defines installed filters in 'filterDefinitions', including version. Installed filters may be referenced by-name in the profiles.
  3. New suite of installation and update commands, which allow you to install and update filters via the command line.

Having migration issues? We will be updating the docs to reflect 0.0.8 in the coming days. For now, our recommendation is:

  1. Take a backup of your project
  2. Delete config.json, and clear your .regolith folder.
  3. Run 'regolith init' to create a new config file, or copy/paste from the website
  4. Run 'regolith install ' for every filter you were using
  5. Add these filters back into your profiles, by name

Good luck, and please report issues on github, or on discord.

For a full changelog, please see bellow.


Changelog

  • db32193 'go install --add' also downloads the filter.
  • 79f9792 'regolith init' and 'regolith unlock improvements + other stuff: - 'regolith init' now can be runned only in empty folders. - 'regolith unlock' can't overwrite the lock file and doesn't run when the project doesn't have valid config file. - Fixed 'regolith init' creating .gitignore file with the first line empty. - New utility function 'isEmptyDir' - Improved 'wrappedError' and 'wrappedErrorf' messages formatting. - Deleted 'IsProjectInitialized' function because it's not used anymore.
  • 2160eb5 'regolith install --add' command can now also install standard filters without giving it full URL
  • 825b3be 'regolith install --add' with keyword 'HEAD' or 'latest' won't lock the version anymmore
  • 801d671 Added 'regolith install --add ' command WIP. Updated dependencies (go-getter 1.5.9 had a bug which didn't allow downloading wiht commit ID). Added semver dependency.
  • f532cc4 Added build-in hello_world filter.
  • 53b2ee7 Added new 'installations' property to the config.json. Current implemetation uses global variable to pass info to the remote filters.
  • 4a0ee83 Added new function 'wrapErrorf' (wrapError + Sprintf). Changed the order of args of wrapError.
  • 5c29788 Added test that, dwnloads a versioned filters, unlocks regolith project and runs the filter
  • 512bb10 Added tests for 'regolit update' and 'regolith update-all'
  • ccdb104 Added warning messages to 'install', 'install-all', 'update' and 'update-all' commands that informs about Git not being installed. Installation of the remote filters fails with this message when Git is not instlled. Close #136
  • 52f7c83 Additional refactoring
  • cf67637 All filters types have different struct type. All filter structs implement FilterRunner.
  • 5b26dad Attempt to disambiguate dependency installation Vs. downloading
  • 7e36c2f Awful spagheti code but it passes the tests.
  • e90de48 Continuation of previous commit. Code compiles but doesn't pass the tests.
  • 9678ccc Disabled stack traces from the 'zap' logger.
  • c8219a5 Docs push
  • 0dd6c41 Filter versioning epic
  • 84895c8 Fix failing tests
  • fee0e63 Fix init logic
  • 3ab9f7f Fixed WarpError typo (should be warpError).
  • c895286 Fixed a bug which caused the 'regolith install' command not to copy the filter data.
  • 751b761 Fixed code that prevents compilation.
  • 31ca446 Fixed problem with remote filters not being able to read filter.json file while f.Run().
  • 3013913 Fixed problems that caused tests to fail: - updated the config.json files to the new format - remote filter copy their data folder - FilterFromObject loads the 'filter' property - the filters from 'filter.json' of remote filter get fake value for 'filter' property to avoid crashes
  • fa3cda2 Fixed shell filter bug which caused it to always return error.
  • 5d16162 Fixed typo in filter_remote.go name (filter_reomote).
  • 9d56e7d Fixing a typo
  • 93f76b4 Further installation edits
  • a53d25f Implemented 'regolith update', 'regolith update-all' and a bunch of utility functions for better error handling.
  • 3f80a36 Improve error messaging, improve initialization code
  • 5115f2f Improve wrapped errors
  • 38f6ded Improved some error messages. Regolith install won't add the filter to the filtersDefinitions list unless the installation finishes successfuly.
  • 076c3fd Making installFilter function cleaner.
  • 9201d86 Merge branch 'main' into feature/filter-versioning
  • 1cdd748 Merge branch 'main' of https://github.com/Bedrock-OSS/regolith into feature/filter-versioning
  • 070562e Merge pull request #128 from Bedrock-OSS/feature/filter-versioning
  • d00bb02 Merge pull request #129 from retr0cube/patch-1
  • 7e3d730 Merge pull request #133 from Bedrock-OSS/feature/installations
  • 39b4770 Merge pull request #134 from MajestikButter/patch-1
  • d832264 Merge pull request #138 from Bedrock-OSS/filter-definitions-code-cleanup
  • cd32e4f Merge pull request #141 from Bedrock-OSS/new-commands
  • 62ac5f0 Merge pull request #143 from Bedrock-OSS/docs/filter-versioning
  • 64d8bae Moved Installation struct and its functions to separate file
  • b03c649 Moved dataPath from 'Profile' to 'RegolithProject'
  • 5de30aa Moved everything related to RemoteFilter to filter_remote.go
  • 6597bd7 Moved the methods of RemoteFilterDefinition from 'installations.go' to 'filter_remote.go'
  • 6429c5d New error handling for 'config.json'. WrapError and WrapErrorf can print their locations.
  • 17f9d3f New error handling for 'export.go'
  • 75da00f New error handling for 'file_protection.go'
  • cdd1328 New error handling for 'install_add.go' and 'installation.go'.
  • 538045c New error handling for all 'filter_*.go' files
  • 894717a New error handling for other *.go files.
  • 61cbc30 Pushing unfinished changes: - Every Filter (e.g. PythonFilter) will have corresponding FilterDefinition (e.g. PythonFilterDefinition). They are based on the Filter and FilterDefinition structs. - FilterDefinitions contain most info about the filter but the Filters have additional properties - Settings , Name, Disabled and Arguments. - The FilterDefinitions are created based on the JSON in the filters list of the 'regolith' - The Filters are created based on their JSON (from filters of a Profile) and a FilterDefinition. - Every Filter has a FilterDefinition as property (which is necessary for
    egolith run). - All FilterDefinitions implement the FilterInstaller interface which has following methods: InstallDependencies, Check, CreateFilterRunner - All Filters implement the FilterRunner interface with methods: Run, GetFriendlyName -
    egolith run uses FilterRunners and doesn't need to know exactly what kind of the runner is being used (executes them from a list) -
    egolith install uses FilterInstallers and doesn't need to know exactly what kind of installer is being used (installs them from a list)
  • 349ba8a Regolith always prints stack trace of the final error.
  • 77c8bbe Remote filters store their version inside filter.json file when their downloaded (close #74). Added firstErr() utility function for easier handling groups of errors.
  • 277aff4 Remove friendly name handling
  • 304508e Removed Install_OLD
  • 282cc42 Removed filter_remote.go the functions were moved to other places, added update.go for functions related to regolith updates.
  • 3beecbb Removed the build-in filters.
  • cd09c66 Removed use of global variables. The nested remote filters are not supported anymore (including standard filters). Updated tests to match new behaviors of Regolith.
  • 29daf27 Renamed 'regolith->filters' property of the config.json file to 'filterDefinitoins'
  • 75d2b88 Renamed the 'Installation' object to 'FilterDefinition' in the code. Renamed the 'installations' field in config.json to 'filters'.
  • 6630014 Reorganised some code
  • 5004df9 Reorganised the project
  • b42d0ed Reorganize docs
  • b6a6fc9 Restored old .gitignore
  • e09a042 Simlper stack traces in error messages.
  • 4578f0f Small error updates
  • ff46913 Some error cleanup
  • 261503a Started implementing new set of commands: install, install-all, update, update-all, run, init, clean, unlock
  • baa0434 Starting all of the error messages with capital letters, adding period at the end of every sentence in error messages, switching apostrophes used as quotation marks with quotation marks.
  • 7faaf68 Style changes
  • 25c7538 Temp
  • deed191 The 'filter' property of remote filter is now required. Fixd problem of remote filters installing in a wrong path.
  • 23e0783 The RecursiveInstall of Filter sturct creates Profiles from filter.json and recursively installs nested filters. Copying the filter data is not implemented yet.
  • 4ce0c7e The RemoteFilterDefinition uses the StandardLibraryUrl by default when it's not defined.
  • f2628e7 Update README.md
  • 9bc213d config.go: updated the documentation comments; removed --update flag from 'regolith install' (it didn't do anything)